I'm creating this issue just to remind myself to implement this along with the select changes.
Description
Since I've added new form hooks like useTextField and useNumberField, it would be nice to implement hooks for the other form components to be safe. The main reason for this would be that I can do some nice things with the existing Form component:
update the onReset call to automatically call the reset() function for all the hooks
update onReset to call event.preventDefault() to fix Checkbox state messing up a bit
I'm creating this issue just to remind myself to implement this along with the select changes.
Description
Since I've added new form hooks like
useTextField
anduseNumberField
, it would be nice to implement hooks for the other form components to be safe. The main reason for this would be that I can do some nice things with the existingForm
component:onReset
call to automatically call thereset()
function for all the hooksonReset
to callevent.preventDefault()
to fixCheckbox
state messing up a bit