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

Method focus

src/material/select/select.ts:1329–1331  ·  view source on GitHub ↗

Focuses the select element.

(options?: FocusOptions)

Source from the content-addressed store, hash-verified

1327
1328 /** Focuses the select element. */
1329 focus(options?: FocusOptions): void {
1330 this._elementRef.nativeElement.focus(options);
1331 }
1332
1333 /** Gets the aria-labelledby for the select panel. */
1334 _getPanelAriaLabelledby(): string | null {

Callers 4

_initKeyManagerMethod · 0.95
_resetOptionsMethod · 0.95
_onSelectMethod · 0.95
onContainerClickMethod · 0.95

Calls 1

focusMethod · 0.65

Tested by

no test coverage detected