Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
Fix ionic-team#7417 for v4
Browse files Browse the repository at this point in the history
  • Loading branch information
iva2k authored Jul 31, 2018
1 parent 7a6bebe commit 2c44945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/components/menu/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ export class Menu {
let isEnabled = !this.disabled;
if (isEnabled === true || typeof isEnabled === 'undefined') {
const menus = this.menuCtrl!.getMenus();
isEnabled = !menus.some((m: any) => {
isEnabled = 2 > menus.filter((m: any) => {
return m.side === this.side && !m.disabled;
});
}).length;
}

// register this menu with the app's menu controller
Expand Down

0 comments on commit 2c44945

Please sign in to comment.