Switch forms to onTouched mode
By using onTouched mode validation does not complain about invalid values until the users have changed focus from the field. Doing it this way we don't complain about values until the user tries to use an invalid one. Does not work for all fields. For that to be the case, we will have to do some clean up of controlled and uncontrolled values.
parent
c567d7b8
No related branches found
No related tags found
Showing
- frontend/src/routes/guest/register/steps/consent.tsx 1 addition, 1 deletionfrontend/src/routes/guest/register/steps/consent.tsx
- frontend/src/routes/guest/register/steps/register.tsx 12 additions, 6 deletionsfrontend/src/routes/guest/register/steps/register.tsx
- frontend/src/routes/sponsor/guest/guestRoleInfo/index.tsx 1 addition, 1 deletionfrontend/src/routes/sponsor/guest/guestRoleInfo/index.tsx
- frontend/src/routes/sponsor/guest/newGuestRole/index.tsx 2 additions, 2 deletionsfrontend/src/routes/sponsor/guest/newGuestRole/index.tsx
- frontend/src/routes/sponsor/register/stepPersonForm.tsx 4 additions, 1 deletionfrontend/src/routes/sponsor/register/stepPersonForm.tsx
- frontend/src/utils/index.ts 3 additions, 5 deletionsfrontend/src/utils/index.ts
Loading
Please register or sign in to comment