mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(menu): only close when open on enable change
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user