ComponentsUtilities

Form Validation

After a failed save every field shows its error, the first invalid one scrolls into view and gets the focus — the input inside a kit field, not its wrapper.

Part of @tectra-ng/utils (npm install @tectra-ng/utils, also included in tectra-ng).

Features3APIThemingAccessibility

Basic

Press Save with empty fields: the form scrolls to the first error and focuses it. TxFormValidation provided in the component searches only inside it.

On submit

txScrollToInvalid on a <form> does the same on submit and reports validSubmit only when the form is valid.

Nested

Groups and arrays too: markAllTouched walks every level, and the scroll goes to the first invalid row.