(el: FormElement)
| 14 | * @returns `true` if the element is invalid, `false` otherwise. |
| 15 | */ |
| 16 | export 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 | }; |
no outgoing calls
no test coverage detected