Skip to content

Commit

Permalink
fix(menu): opening a menu autocloses any opened ones
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Sep 25, 2018
1 parent 22e15b4 commit 8796f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/components/menu-controller/menu-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8796f9f

Please sign in to comment.