dependency: bump react-hook-form from 7.15.4 to 7.16.0
Bumps react-hook-form from 7.15.4 to 7.16.0.
Release notes
Sourced from react-hook-form's releases.
Version 7.16.0
🪄 feat: Ability to provide custom onBlur and onChange handlers (#5620)
<input type="text" {...register('test', { onChange: (e) => {}, onBlur: (e) => {}, })} />
🗺 ️ fixMapped
types for defined value type withinterface
(#6605)🏥 close #6590 prevent error throw by missing input with trigger API (#6591)Thanks to
@kotarella1110
@exneval
@michalbundyra
Changelog
Sourced from react-hook-form's changelog.
[7.16.0] - 2021-09-25
Added
register
allowed pass customonChange
andonBlur
<input type="text" {...register('test', { onChange: (e) => {}, onBlur: (e) => {}, })} />
[7.15.0] - 2021-09-05
Added
useFieldArray
new methodreplace()
const { control } = useForm({ defaultValues: { test: [{ value: 'lorem' }, { value: 'ipsum' }], }, }); const { fields, replace } = useFieldArray({ control, name: 'test', }); const handleFullyReplacement = (): void => { // remove old and set fully new values replace([{ value: 'dolor' }, { value: 'sit' }, { value: 'amet' }]); };
[7.14.0] - 2021-08-27
Added
register
add dependent validationconst App = () => { const { register, getValues } = useForm(); return ( </tr></table>
... (truncated)