This repository has been archived by the owner on Aug 23, 2022. It is now read-only.
v1.14.2
Fixes and Enhancements
<Control.textarea updateOn="blur">
will no longer trigger a change when the enter key is pressed. #930<Control.checkbox>
withdefaultChecked
now works properly, thanks to @maludwig, along with other fixes: #905, #908, #922, #928- Ensured that
debounce="..."
flushing does not occur more than once. #951 #884 - 🆕 the
isValid
utility is exposed, which makes it much easier to determine if an entire form is sync/async valid:
import { isValid } from 'react-redux-form';
// inside a connected component
// `forms` is retrieved directly from the store, e.g.:
// connect(state => ({
// forms: state.forms
// }))(YourComponent)
const { forms } = this.props;
// true if form and all subfields are valid
const valid = isValid(forms);
// true if form and all subfields are valid, ignoring async validity
const syncValid = isValid(forms, { async: false })