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

Method onContainerClick

src/material/input/input.ts:574–581  ·  view source on GitHub ↗

* Implemented as part of MatFormFieldControl. * @docs-private

()

Source from the content-addressed store, hash-verified

572 * @docs-private
573 */
574 onContainerClick() {
575 // Do not re-focus the input element if the element is already focused. Otherwise it can happen
576 // that someone clicks on a time input and the cursor resets to the "hours" field while the
577 // "minutes" field was actually clicked. See: https://github.com/angular/components/issues/12849
578 if (!this.focused) {
579 this.focus();
580 }
581 }
582
583 /** Whether the form control is a native select that is displayed inline. */
584 _isInlineSelect(): boolean {

Callers

nothing calls this directly

Calls 1

focusMethod · 0.95

Tested by

no test coverage detected