Checks whether the input is invalid based on the native validation.
()
| 499 | |
| 500 | /** Checks whether the input is invalid based on the native validation. */ |
| 501 | protected _isBadInput() { |
| 502 | // The `validity` property won't be present on platform-server. |
| 503 | let validity = (this._elementRef.nativeElement as HTMLInputElement).validity; |
| 504 | return validity && validity.badInput; |
| 505 | } |
| 506 | |
| 507 | /** |
| 508 | * Implemented as part of MatFormFieldControl. |