Releases: LaunchPadLab/lp-form
Releases · LaunchPadLab/lp-form
v2.10.1
v2.10.0
- Enhances error mapping such that an error without an
errors
key that has amessage
property will map that property as a form-wide error viaSubmissionError
. This will then be available in theerrors
object passed in toonSubmitFail
, as well as theerror
prop in the form component.
v2.9.0
v2.8.0
v2.7.0
v2.6.0
Minor upgrade:
- Added original error to
meta.error
property of the wrappedSubmissionError
. This will be accessible to developers in the third argument ofredux-form
'sonSubmitFail
// Example
<Form
onSubmitFail={(errors, dispatch, submitError, props) => {
if (submitError.meta.error.status === 404) return console.error('Not found')
console.error(errors.message)
}
/>
v2.4.0
- Adds
beforeSubmit
prop tolpForm
v2.3.0
- Adds
debounceSubmit
prop tolpForm