From e7be2dceb74dd23b3924de2e1219fa8467611763 Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Fri, 7 Dec 2018 12:58:32 +0100 Subject: [PATCH] MOBILE-2620 context-menu: Hide menu if no items are added --- src/components/context-menu/context-menu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/context-menu/context-menu.ts b/src/components/context-menu/context-menu.ts index 7ccc09e46..5d453384f 100644 --- a/src/components/context-menu/context-menu.ts +++ b/src/components/context-menu/context-menu.ts @@ -32,7 +32,7 @@ export class CoreContextMenuComponent implements OnInit, OnDestroy { @Input() icon?: string; // Icon to be shown on the navigation bar. Default: Kebab menu icon. @Input() title?: string; // Aria label and text to be shown on the top of the popover. - hideMenu: boolean; + hideMenu = true; // It will be unhidden when items are added. ariaLabel: string; protected items: CoreContextMenuItemComponent[] = []; protected itemsMovedToParent: CoreContextMenuItemComponent[] = [];