Skip to content
Snippets Groups Projects
  • Andreas Ellewsen's avatar
    7d64f829
    Make email field validate on change again · 7d64f829
    Andreas Ellewsen authored
    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
    Make email field validate on change again
    Andreas Ellewsen authored
    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