rescriptbr / reform

📋 Reasonably making forms sound good
https://rescript-reform.netlify.app/
MIT License
353 stars 41 forks source link

Receive updated fieldsState in onSubmitFail #164

Closed Freddy03h closed 4 years ago

Freddy03h commented 4 years ago

state.fieldsState received in onSubmitFail isn't updated with the new newFieldsState created in the ValidateForm action.

It's especially visible at first try: submit a form without touching any fields result to an onSubmitFail without any error in state.fieldsState

fakenickels commented 4 years ago

oh that's a good catch, thanks @Freddy03h

Freddy03h commented 4 years ago

thank you for your very fast review and merge :)

fakenickels commented 4 years ago

@all-contributors add @Freddy03h for bug fix

allcontributors[bot] commented 4 years ago

@fakenickels

I've put up a pull request to add @Freddy03h! :tada: