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

Method focus

src/cdk/testing/testbed/unit-test-element.ts:134–137  ·  view source on GitHub ↗

Focus the element.

()

Source from the content-addressed store, hash-verified

132
133 /** Focus the element. */
134 async focus(): Promise<void> {
135 triggerFocus(this.element as HTMLElement);
136 await this._stabilize();
137 }
138
139 /** Get the computed value of the given CSS property for the element. */
140 async getCssValue(property: string): Promise<string> {

Callers

nothing calls this directly

Calls 1

triggerFocusFunction · 0.90

Tested by

no test coverage detected