mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(menu): opening a menu autocloses any opened ones
This commit is contained in:
@ -225,7 +225,7 @@ export class MenuController implements MenuControllerI {
|
||||
if (shouldOpen) {
|
||||
const openedMenu = await this.getOpen();
|
||||
if (openedMenu && menu.el !== openedMenu) {
|
||||
return openedMenu.setOpen(false, false);
|
||||
await openedMenu.setOpen(false, false);
|
||||
}
|
||||
}
|
||||
return menu._setOpen(shouldOpen, animated);
|
||||
|
||||
Reference in New Issue
Block a user