Skip to content

1.2.0

Compare
Choose a tag to compare
@kettanaito kettanaito released this 11 Apr 09:55
· 441 commits to master since this release

API

  • Adds beforeRegister method to createField options. This method allows to apply additional transformations to the fieldProps immediately before the registration. It also allows to completely prevent the registration of the field in case false is returned. (#233)
  • Adds allowMultiple flag to createField options. This flag controls whether the multiple fields with the same name are allowed. (#233)
  • Allows to reference custom valuePropName props in validation rules resolvers functions. (#238)
  • Allows to control the field-wide initialValue in the createField options. (#240)

Bugfixes

  • References valuePropName in the fieldProps composition in createField.Field render method

Internals

  • Refines updateField method to use pure update function as a parameter (#182)