Skip to content

Commit

Permalink
feat(menu): grab the menu by side only if it is enabled
Browse files Browse the repository at this point in the history
this removes the need to pass an id when you enable one menu

references #5535
  • Loading branch information
brandyscarney committed Feb 19, 2016
1 parent 5e1eeff commit a2b7a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ionic/components/menu/menu-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export class MenuController {
if (menu) return menu;

// not found by "id", next try by "side"
menu = this._menus.find(m => m.side === menuId);
menu = this._menus.find(m => m.side === menuId && m._isEnabled);
if (menu) return menu;
}

Expand Down

0 comments on commit a2b7a21

Please sign in to comment.