()
| 14 | menu = inject(Menu); |
| 15 | |
| 16 | constructor() { |
| 17 | afterRenderEffect(() => { |
| 18 | this.menu.visible() ? this.menu.element.showPopover() : this.menu.element.hidePopover(); |
| 19 | }); |
| 20 | } |
| 21 | |
| 22 | onBeforeToggle() { |
| 23 | const parent = this.menu.parent() as MenuItem<string>; |