MCPcopy Create free account
hub / github.com/angular/components / _subscribeToMenuStackClosed

Function _subscribeToMenuStackClosed

src/cdk/menu/menu-base.ts:237–241  ·  view source on GitHub ↗

Subscribe to the MenuStack close events.

()

Source from the content-addressed store, hash-verified

235
236 /** Subscribe to the MenuStack close events. */
237 private _subscribeToMenuStackClosed() {
238 this.menuStack.closed
239 .pipe(takeUntil(this.destroyed))
240 .subscribe(({item, focusParentTrigger}) => this.closeOpenMenu(item, {focusParentTrigger}));
241 }
242
243 /** Subscribe to the MenuStack hasFocus events. */
244 private _subscribeToMenuStackHasFocus() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected