🍾 🎉 This library just passed 5,000 ⭐️'s on Github. 🎉 🍾 Thank you, all.
New Features
- Event callbacks! - You may now pass
onChange
,onBlur
,onFocus
, etc. props toField
, and those callbacks will be called asredux-form
is processing the events. Also, in your callback, you may callevent.preventDefault()
to prevent the event from being processed byredux-form
. #2385 #2334
- Added
props
toonSubmitSuccess
andonSubmitFail
. #2396 #2394 - New
getFormNames(state)
selector. #2402 #2397 - New
getFormInitialValues(state)
selector. #2460 - Allowed multiple form names to be passed to
destroy()
action creator #2402 - Added
keepSubmitSucceeded
config option. #2426 #1994 - Supplied
props
to field-level validation functions. #2431 #2430
Bug Fixes
- Provided form name to
Field
's component as ameta
prop. #2400 #2386 - Avoided unnecessary
deepEqual()
call forpristine
. #2401 #2380 - Removed
array-findindex-polyfill
. #2403 #2337 - Fixed unexpected value updates when a radio button loses focus. #2445 #2444
- Allowed internal storage to be a
Record
. #2423 - Fixed immutable exports. #2425 #2025
- Update
Fields
cached handlers whennames
prop changes. #2474 #2161 - Set value properly for file inputs. #2452
- Keep track of registration count in
registeredFields
. #2470 #2016 #2223 #1705 #1990 - Replaced
shallowequal
withlodash
isequalwith
. #2506 - Do not set
FieldArray
astouched
on submit. #2473 #2014 Field
s inside aFormSection
now have theirname
props prefixed. #2464 #2121
⚠️ This last one could potentially be a breaking change, but probably nothing is depending on the unprefixed name, so we've slipped it into a feature release. Please berate @erikras on Twitter if this causes problems.
A big thanks to all the contributors, and a special thanks to @huan086, who contributed more than his fair share of PRs this iteration. 👍