fix(menu): only close when open on enable change

This commit is contained in:
Adam Bradley
2016-02-04 12:22:04 -06:00
parent f64bf4a81c
commit a42836340a

View File

@ -419,7 +419,7 @@ export class Menu extends Ion {
*/ */
enable(shouldEnable) { enable(shouldEnable) {
this.isEnabled = shouldEnable; this.isEnabled = shouldEnable;
if (!shouldEnable) { if (!shouldEnable && this.isOpen) {
this.close(); this.close();
} }
return this; return this;