MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / checkInvalidState

Function checkInvalidState

core/src/utils/forms/validity.ts:16–21  ·  view source on GitHub ↗
(el: FormElement)

Source from the content-addressed store, hash-verified

14 * @returns `true` if the element is invalid, `false` otherwise.
15 */
16export const checkInvalidState = (el: FormElement): boolean => {
17 const hasIonTouched = el.classList.contains('ion-touched');
18 const hasIonInvalid = el.classList.contains('ion-invalid');
19
20 return hasIonTouched && hasIonInvalid;
21};

Callers 6

connectedCallbackMethod · 0.90
connectedCallbackMethod · 0.90
connectedCallbackMethod · 0.90
connectedCallbackMethod · 0.90
connectedCallbackMethod · 0.90
connectedCallbackMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected