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

React Redux Form v0.12.7

Compare
Choose a tag to compare
@davidkpiano davidkpiano released this 25 May 04:38
· 1165 commits to master since this release

Bug Fixes

  • Previously, for most cases, a text <input /> could not be uncontrolled; i.e., it was forced to be controlled, and the value prop was overridden. This was undesirable in some instances, and now, <input value={...} /> inside <Field> will maintain its original value prop, if it exists. This yields two new scenarios:
// force an input to be uncontrolled
<Field model="foo.bar">
  <input value={undefined} />
</Field>

// control an input externally
<Field model="foo.bar">
  <input value={this.state.value} onChange={...} />
</Field>
  • The SET_SUBMITTED and SET_SUBMIT_FAILED actions now propagate to the form's underlying fields, so the .submitted and .submitFailed field props accurately represent those of the parent form. #222