- Typescript support
- Stops using autobind-decorator.
- Adds
<input type="submit" />
to forms to enable submitting on enter.
- Clones the state prop.
- Check state changes using deep equal comparison.
- Props not specified in propTypes are passed to fields too.
- Upgrade to React 16.
- Use the new Context API.
- New
WithValue
HOC. - Better testing (without enzyme).
- Almost 100% backwards compatible.
- Field input ref is now in
.input
instead of.refs.input
.
- Add focus method to Field.
- Complete rewrite.
- Faster and lighter.
- Better state management.
doc
prop is deprecated.- No more simple-schema integration.
- No more collection integration.
- No more Meteor integration
- Allow autogenerated forms from schemas that contain arrays with primitive values. by @prinzdezibel at #59.
- submit function returns a boolean indicating the result.
- Use lodash instead of underscore.
- Use deepClone instead of clone to clone doc, state, and errorMessages props.
- Not render form never in React Native
- Add
errorMessages
prop toForm
- Pass props not present in propTypes to form element
- Fix onSubmit doc cleaning
- Fix use of this.props on Form constructor
- Pass only present fields in
onSubmit
callback.
- Set field type prop label to any to avoid warnings.
- Fix a bug with
unregisterField
.
- Separate
generateInputsForKeys
fromForm.js
. - Fix a bug with
getPresentFields
with deep keys. - Add tests for
generateInputsForKeys
andgetPresentFields
.
- Tests. by @fermuch at #36.
- Check javascript style when testing (js-standard).
- Is no longer required to extend the FieldType to create fields.
- Rename files.
- Better warning when field has no field type.
- Check React Native in other way.
- Fix bug created by using dot-object as a dependency instead of including the code.
- Use dot-object as a dependency instead of including the code.
- Create tests for clean fields function.
- Put utility functions into different files.
- Set the prop clearOnSuccess default to false.
- Nulls are also filtered when updating.
- Set changes to blank before passing the onSuccess callback. Fixes #4.
- Better error handling when getting errors from the server.
- Improve the algorithm that was implemented in 1.6.6. This fixes when fields that are object are removed from the update object.
- Disabled fields don't count as registered fields when passing to modifiers.
keepArrays
is nowtrue
by default.commitOnlyChanges
is nowfalse
by default.- When updating a document, only fields that are present in the form (registered in the main form component) will be passed to the modifiers.
- Accept any type of label in field.
- Fix a bug with object or array fields in nested array with simple schema.
keepArrays
prop is now defaultfalse
.
- Array and object components are fields now.
- Field types should be passed in the type prop of the Field component.
- Support for React Native.
- Add useFormTag option.
- Use context instead of cloning elements.