⬆ ️ deps: Bump react-hook-form from 7.26.1 to 7.28.0
Bumps react-hook-form from 7.26.1 to 7.28.0.
Release notes
Sourced from react-hook-form's releases.
Version 7.28.0
🏬 enabledeps
with string syntax (react-hook-form/react-hook-form#7901)register('test', { deps: 'theOtherInput' }) register('test', { deps: ['theOtherInput', 'others'] })
🧷 fix field array
update
to avoid external mutation🐞 fix react-hook-form/react-hook-form#7960 issue on unset deeply nested array field (react-hook-form/react-hook-form#7961)🐞 fix react-hook-form/react-hook-form#7958 issue with checkbox plus portal (react-hook-form/react-hook-form#7959)📦 unpack blob data type (react-hook-form/react-hook-form#7937)thanks to
@DASPRiD
and@Moshyfawn
Version 7.28.0-next.0
🏬 enable deps with string syntax (react-hook-form/react-hook-form#7901)register('test', { deps: 'theOtherInput' })
🧷 fix field array
update
to avoid external mutationVersion 7.27.1
🐛 fix react-hook-form/react-hook-form#7853 (useFieldArray): pass context type down to Control (react-hook-form/react-hook-form#7856)🐞 fix react-hook-form/react-hook-form#7849 issue with unset on multiple dimension array (react-hook-form/react-hook-form#7859)thanks to
@Moshyfawn
Version 7.27.0
✨ react-hook-form/react-hook-form#7138 feature: allow selecting input's content on focus (react-hook-form/react-hook-form#7781)setFocus('fieldName', { shouldSelect: true })
⌨ ️ fix react-hook-form/react-hook-form#7772 type issue by using UnpackNestedValue on FieldArray methods (react-hook-form/react-hook-form#7773)thanks to
@Moshyfawn
and@hpersson
Changelog
Sourced from react-hook-form's changelog.
[7.28.0] - 2022-3-13
register
API optionsdeps
now support stringregister('test', { dpes: 'test' });
[7.27.0] - 2022-2-11
Added
- new option for
setFocus
to select the entire field valuesetFocus('fieldName', { shouldSelect: true });
[7.25.2] - 2022-1-29
Changed
onTouched
mode will honorfocusout
event[7.25.0] - 2022-1-22
Added
getFieldState
get individual field stateexport default function App() { const { register, getFieldState, formState: { isDirty, isValid }, } = useForm({ mode: 'onChange', defaultValues: { firstName: '', }, }); // you can invoke before render or within the render function const fieldState = getFieldState('firstName'); return ( <form> <input {...register('firstName', { required: true })} /> <p>{getFieldState('firstName').isDirty && 'dirty'}</p> </tr></table>
... (truncated)
Commits
-
3d1603f
7.28.0 -
80a8c09
🥼 update changelog -
d865a21
🐞 fix #7960 issue on unset deeply nested array field (#7961) -
9f70a03
🐞 fix #7958 issue with checkbox plus portal (#7959) -
7ee0111
📦 unpack blob data type (#7937) -
e4d87b8
🔨 fix field array update method to avoid external mutation (#7928) -
a462471
Create issue-checker.yml (#7926) -
085632d
Revert "👀 include issue auto check and closer (#7923)" -
de458c3
👀 include issue auto check and closer (#7923) -
9a3476d
❤ ️ thank you feathery for sponsoring - Additional commits viewable in compare view