MOBILE-2620 context-menu: Hide menu if no items are added

main
Albert Gasset 2018-12-07 12:58:32 +01:00
parent f85c06eff5
commit e7be2dceb7
1 changed files with 1 additions and 1 deletions

View File

@ -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[] = [];