Releases: gokulakannant/react-form-input-validation
Releases · gokulakannant/react-form-input-validation
v2.1.0
[2.1.0] - 02/08/2022
Added
- Introduced the hook support
Fixed
- Form validation with React Functional Component and useState Hooks - #41
v2.0.4
v2.0.1
[2.0.1] - 25/11/2019
Fixed
- Fixed
onformsubmit
event is received with empty values.
v2.0.0
Added
- Added the following new API's
- A new custom event is introduced to provide validated form data.
- A custom attribute
data-async
introduced to denotes async validation form field.
It should be mentioned in form field, if the form field has async validation. ReferregisterAsync
API for more details.
Modified
- API Documentation contents has improved.
- More Code Sandbox examples are added in the API document.
- Modified API name from
handleFieldsChange
tohandleChangeEvent
. - Error message containing state
inputErrors
is renamed toerrors
. - Accessing error message in state is modified from
state.inputErrors.{form field name}.message
tostate.errors.{form field name}
.
Removed
- Contructor arguments reduced.
- Rules passing in consturctor is removed. And the alternate is
useRules
. - Handle submit callback in constructor removed. And the alternate is
onformsubmit
event.
- Rules passing in consturctor is removed. And the alternate is