react-hook-form 7.7.0
[7.7.0] - 2021-05-29
Added
triggersupport focus with error input
trigger('inputName', { shouldFocus: true });
Changed
handleSubmitwillthrowerror within the onSubmit callback
trigger support focus with error inputtrigger('inputName', { shouldFocus: true });
handleSubmit will throw error within the onSubmit callback