* Implemented as part of MatFormFieldControl. * @docs-private
()
| 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 { |