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

Function focus

src/material/datepicker/date-range-input-parts.ts:144–146  ·  view source on GitHub ↗

Focuses the input.

()

Source from the content-addressed store, hash-verified

142
143 /** Focuses the input. */
144 focus(): void {
145 this._elementRef.nativeElement.focus();
146 }
147
148 /** Gets the value that should be used when mirroring the input's size. */
149 getMirrorValue(): string {

Callers

nothing calls this directly

Calls 1

focusMethod · 0.65

Tested by

no test coverage detected