New Features
- 💥 New
Form
component 💥 creates a shallow wrapper of a<form>
tag that allowsredux-form
to call theonSubmit
function when a submit is triggered via aSUBMIT
action or via the instance API. #2326 #2238 Kudos to @davidkpiano for the idea. - New
forceUnregisterOnUnmount
config parameter that fixes some problems with wizard forms. #2310 #2231 - New selectors for
submitting
,submitSucceeded
andsubmitFailed
. #2289 #2173 - More control over how
FormSection
operates. #2329 #2271 #2274 WhenFormSection
needs to wrap its children in a component, you may now:- Specify the type of component, e.g.
div
,section
, etc. - Pass through props, e.g.
className
,style
, to said component
- Specify the type of component, e.g.
Bug Fixes
- First call to validate was always receiving an empty object when
enableReinitialize
wastrue
. #2296 #1901 - Change to allow
undefined
to be returned from sync validation. #2273 #2272 - Bind handlers to components. There were some unnecessary re-renders being caused by event handlers being created each time a field was rendered rather than using bound member methods. #2161 Kudos to @oreqizer for this major refactor.