From a2b7a21a95c0f1c40f2f2ce182bb93e28d6622d1 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Fri, 19 Feb 2016 16:18:31 -0500 Subject: [PATCH] feat(menu): grab the menu by side only if it is enabled this removes the need to pass an id when you enable one menu references #5535 --- ionic/components/menu/menu-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ionic/components/menu/menu-controller.ts b/ionic/components/menu/menu-controller.ts index 1c1fd69ac3..5865265cfb 100644 --- a/ionic/components/menu/menu-controller.ts +++ b/ionic/components/menu/menu-controller.ts @@ -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; }