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

Function _subscribeToMenuStackHasFocus

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

Subscribe to the MenuStack hasFocus events.

()

Source from the content-addressed store, hash-verified

242
243 /** Subscribe to the MenuStack hasFocus events. */
244 private _subscribeToMenuStackHasFocus() {
245 if (this.isInline) {
246 this.menuStack.hasFocus.pipe(takeUntil(this.destroyed)).subscribe(hasFocus => {
247 this._menuStackHasFocus.set(hasFocus);
248 });
249 }
250 }
251
252 /**
253 * Set the PointerFocusTracker and ensure that when mouse focus changes the key manager is updated

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected