v7.0.1
Bug fixes since v7.0.0. No breaking changes.
Bug Fixes
- Fixed
useFieldreturning the form'sinitialValuesinstead of the field's initial value on first render (#1060, fixes #1050) - Fixed
type="select"withmultiplenot defaulting to[](#1061) - Fixed React Native compatibility by removing the
HTMLElementconstraint (#1065) - Fixed
destroyOnUnregisterlosing initial values when used in StrictMode (#1069) - Fixed checkbox and radio
checkedlogic — was incorrectly usingformatinstead ofparse(#1074, fixes #974) - Fixed field
nameprop shadowing DOM properties (#1077, fixes #871) - Fixed
FormSpyonChangenot being called with initial state on mount (#1076) - Fixed field name and value falling out of sync when the
nameprop changes dynamically (#1078, fixes #869) - Fixed overwriting getter-only properties when spreading props in
renderComponent(#1056, fixes #1055) - Fixed spreading of lazy state in
FormSpyrender props (#1059) - Fixed
inputprop override being ignored in theFieldcomponent (#1066)
Documentation
- Added v7.0.0 migration guide for TypeScript users (#1064)