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

Method _isBadInput

src/material/input/input.ts:501–505  ·  view source on GitHub ↗

Checks whether the input is invalid based on the native validation.

()

Source from the content-addressed store, hash-verified

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.

Callers 1

emptyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected