New Features
- Added
bindState
helper. This helper function will save you a couple of lines when rendering form in a form's container. It generates a { attrs, onChange }
props object bounded to a state of the given component. Sample usage code:
render() {
return <MyForm {...bindState(this)} onRequestSave={this.saveForm} />
}
- Added
validateOnSave
prop. When enabled (which is default), form in its save
method will run validation routines first, and execute onRequestSave
callback only if there were no errors.
validateOnChange
prop is now true
by default, since it seems to be expected behavior by default.
Patch Updates
- Reduced code organization complexity
- Fixed minor flaws