Skip to content

v1.1.0

Compare
Choose a tag to compare
@akuzko akuzko released this 22 Feb 21:34
· 26 commits to master since this release

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