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

Method _focusActiveOption

src/cdk/listbox/listbox.ts:891–896  ·  view source on GitHub ↗

Focus the active option.

()

Source from the content-addressed store, hash-verified

889
890 /** Focus the active option. */
891 private _focusActiveOption() {
892 if (!this.useActiveDescendant) {
893 this.listKeyManager.activeItem?.focus();
894 }
895 this.changeDetectorRef.markForCheck();
896 }
897
898 /**
899 * Set the selected values.

Callers 2

_handleFocusMethod · 0.95
_initKeyManagerMethod · 0.95

Calls 2

markForCheckMethod · 0.80
focusMethod · 0.65

Tested by

no test coverage detected