Skip to content
Snippets Groups Projects

Make email field validate on change again

Merged Andreas Ellewsen requested to merge GREG-196-revalidate-email into master

Switches from using a Controller to the simpler uncontrolled setup. Label has been set to be permanently shrunk since mui refuses to realise that the field has input when using rhf's setValue. Validation now happens onChange, alerting the user while typing. Submit button is disabled if you have not touched the field and when the content of the field is an invalid email. After submissions, the new value is treated as the default, disabling the save button until the field has been touched again.

Resolves: GREG-196

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading