* Subscribe to the MenuStack close events if this is a standalone trigger and close out the menu * this triggers when requested.
()
| 309 | * this triggers when requested. |
| 310 | */ |
| 311 | private _registerCloseHandler() { |
| 312 | if (!this._parentMenu) { |
| 313 | this.menuStack.closed.pipe(takeUntil(this.destroyed)).subscribe(({item}) => { |
| 314 | if (item === this.childMenu) { |
| 315 | this.close(); |
| 316 | } |
| 317 | }); |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * Subscribe to the overlays outside pointer events stream and handle closing out the stack if a |