You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected: On change of an input, validations are run and the form is submitted (if no validations failed) Actual: On change of an input, validations are run against the previous values and the form does not submit
Suggested solution: Wrap props.submit() in a timeout to ensure that the form has the latest values Workaround: Instead of passing submitOnChange: true to lpForm, we can override the change handler like so
Expected: On change of an input, validations are run and the form is submitted (if no validations failed)
Actual: On change of an input, validations are run against the previous values and the form does not submit
Sandbox: https://codesandbox.io/s/redux-form-synchronous-validation-forked-uborp?file=/SyncValidationForm.js (type a single letter into the username input)
Related redux-form issues: redux-form/redux-form#537, redux-form/redux-form#4177
Suggested solution: Wrap
props.submit()
in a timeout to ensure that the form has the latest valuesWorkaround: Instead of passing
submitOnChange: true
tolpForm
, we can override the change handler like soThe text was updated successfully, but these errors were encountered: