Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
feat: add invalid state after invalid submission attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
bddjong committed Jul 9, 2023
1 parent f375e8a commit c2111e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/persoonsgegevens/[person].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export default function MultistepForm1() {
id="tel"
type="tel"
autoComplete="tel"
invalid={!formState.isValid && formState.isSubmitted}
{...register("phoneNumber", { required: true })}
/>
</FormField>
Expand All @@ -230,6 +231,7 @@ export default function MultistepForm1() {
type="email"
autoComplete="email"
aria-describedby="email-description"
invalid={!formState.isValid && formState.isSubmitted}
{...register("email", { required: true })}
/>
</FormField>
Expand Down

0 comments on commit c2111e8

Please sign in to comment.