Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

md-menu does not close when md-button in md-menu-item gets disabled #3288

Closed
stefan-schweiger opened this issue Jun 16, 2015 · 1 comment
Closed
Assignees
Milestone

Comments

@stefan-schweiger
Copy link

When the button in an item in the menu gets disabled after clicking on it the menu does not close automatically.

http://codepen.io/anon/pen/mJMxXX

<md-menu>
    <md-button ng-click="$mdOpenMenu()">
        Open
    </md-button>
    <md-menu-content width="4">
        <md-menu-item>
            <md-button ng-disabled="vm.disabled"
                       ng-click="vm.setDisabled(true)">
                Disable
            </md-button>
        </md-menu-item>
        <md-menu-item>
            <md-button ng-click="vm.setDisabled(false)">
                Enable
            </md-button>
        </md-menu-item>
    </md-menu-content>
</md-menu>
@atinder
Copy link

atinder commented Jun 26, 2015

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants