Closed Freddy03h closed 4 years ago
state.fieldsState received in onSubmitFail isn't updated with the new newFieldsState created in the ValidateForm action.
state.fieldsState
onSubmitFail
newFieldsState
ValidateForm
It's especially visible at first try: submit a form without touching any fields result to an onSubmitFail without any error in state.fieldsState
oh that's a good catch, thanks @Freddy03h
thank you for your very fast review and merge :)
@all-contributors add @Freddy03h for bug fix
@fakenickels
I've put up a pull request to add @Freddy03h! :tada:
state.fieldsState
received inonSubmitFail
isn't updated with the newnewFieldsState
created in theValidateForm
action.It's especially visible at first try: submit a form without touching any fields result to an
onSubmitFail
without any error instate.fieldsState