Skip to content

Releases: LaunchPadLab/lp-form

v2.10.1

18 Sep 18:23
Compare
Choose a tag to compare
  • Resolves severe regression introduced in v2.8.3 that resulted in the following error: Uncaught (in promise) Error: Field must be inside a component decorated with reduxForm()

v2.10.0

18 Sep 14:56
42009c2
Compare
Choose a tag to compare
  • Enhances error mapping such that an error without an errors key that has a message property will map that property as a form-wide error via SubmissionError. This will then be available in the errors object passed in to onSubmitFail, as well as the error prop in the form component.

v2.9.0

12 Aug 14:53
Compare
Choose a tag to compare
  • Wraps synchronous onSubmit functions in a promise

v2.8.0

10 Jul 19:37
Compare
Choose a tag to compare
  • Ignores onChange events when forms are pristine and untouched, patching a bug in redux form v8.

v2.7.0

26 Jun 19:25
Compare
Choose a tag to compare
  • Adds second argument of form options to beforeSubmit

v2.6.0

15 Feb 22:40
Compare
Choose a tag to compare

Minor upgrade:

  • Added original error to meta.error property of the wrapped SubmissionError. This will be accessible to developers in the third argument of redux-form's onSubmitFail
// 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

09 Jul 14:54
Compare
Choose a tag to compare
  • Adds beforeSubmit prop to lpForm

v2.3.0

09 Jul 14:40
Compare
Choose a tag to compare
  • Adds debounceSubmit prop to lpForm

v2.2.0

14 Dec 16:06
Compare
Choose a tag to compare
  • Adds submitOnChange option

v2.1.0

14 Dec 16:06
Compare
Choose a tag to compare
  • Adds auto-succeeding default onSubmit