mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +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) {
|
||||
this.isEnabled = shouldEnable;
|
||||
if (!shouldEnable) {
|
||||
if (!shouldEnable && this.isOpen) {
|
||||
this.close();
|
||||
}
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user