Moved innerRef section in docs to match location on table of contents
Change HOC to Wrapper to be consistent with naming throughout the repo
The mixin version of Formsy allowed you to set a default value via defaultProps. This change will essentially hoist your component's defaultProps.value (if it exists) to Formsy.Wrapper to maintain this functionality.
Add optional parameter to setValue() to disable validation. default: setValue(value), new: setValue(value, false) will prevent validation. This was possible with the mixin version of Formsy because the state was mixed into your input component.
(You could do this.setState({ _value: .. });)
Update prepublish script to wipe /lib. Better to start the build folder clean!
Thanks for this. I started testing the beta branch this morning. I'll open a PR with a few tweaks of my own and let you review, then if all is good we can publish v1
This is a continuation of #470.
Formsy.propTypes
to API documentationHOC
toWrapper
to be consistent with naming throughout the repoFormsy.Wrapper
to maintain this functionality.setValue()
to disable validation. default:setValue(value)
, new:setValue(value, false)
will prevent validation. This was possible with the mixin version of Formsy because the state was mixed into your input component. (You could dothis.setState({ _value: .. });
)/lib
. Better to start the build folder clean!