Skip to content

Commit

Permalink
fix(menu): only close when open on enable change
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Feb 4, 2016
1 parent f64bf4a commit a428363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ionic/components/menu/menu.ts
Expand Up @@ -419,7 +419,7 @@ export class Menu extends Ion {
*/
enable(shouldEnable) {
this.isEnabled = shouldEnable;
if (!shouldEnable) {
if (!shouldEnable && this.isOpen) {
this.close();
}
return this;
Expand Down

0 comments on commit a428363

Please sign in to comment.