Releases: NewOldMax/react-form-validator-core
Releases · NewOldMax/react-form-validator-core
Promise support release
Now you can use promises in your custom validations!
Also name
prop for inputs is not required anymore
Debounced forms reset fix
0.5.1 Cancel debounced validation when form validations is reseted.
Debounce memory leak fix
Also now npm audit
runs without errors
0.4.4
React 16.3 support
New
- React 16.3+ support (new lifecycle methods)
isFormValid
- method for ValidatorForm to get validation state for whole form
'debounce' release
Now you can set debounceTime
(in ms) if you need to debounce you validation
<ValidatorForm
+ debounceTime={1500}
>
...
</ValidatorForm>
'reset' release
Now you can reset validation state from all fields, just use new resetValidations
method
reset() {
this.setState(initialFormState);
this.form.resetValidations();
}
<ValidatorForm
ref={r => this.form = r }
>
....
<button onClick={this.reset}>reset</button>
</ValidatorForm>
With `required` release
- add ability to use
required
validator in the same way as others: just passwithRequiredValidator=true
prop toValidatorComponent
Quick fix for new validation rules
- Fix min/maxStringLength rules by @7Flow
New validation rules update
- minStringLength, maxStringLength, isString by @skorp