Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 0b8a022

Browse files
committed
Always call setSubmitFailed when form submit fails, to ensure propagation of submitFailed state in new fields. Fixes #641
1 parent 91afba5 commit 0b8a022

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/form-component.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,7 @@ function createFormClass(s = defaultStrategy) {
277277
onSubmitFailed(formValue);
278278
}
279279

280-
if (!formValue.$form.submitFailed) {
281-
dispatch(s.actions.setSubmitFailed(this.props.model));
282-
}
280+
dispatch(s.actions.setSubmitFailed(this.props.model));
283281
}
284282

285283
handleReset(e) {

0 commit comments

Comments
 (0)