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

Method _handleFocusIn

src/cdk/listbox/listbox.ts:818–822  ·  view source on GitHub ↗

Called when a focus moves into the listbox.

()

Source from the content-addressed store, hash-verified

816
817 /** Called when a focus moves into the listbox. */
818 protected _handleFocusIn() {
819 // Note that we use a `focusin` handler for this instead of the existing `focus` handler,
820 // because focus won't land on the listbox if `useActiveDescendant` is enabled.
821 this._hasFocus = true;
822 }
823
824 /**
825 * Called when the focus leaves an element in the listbox.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected