You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the non array version of multiple checkboxes, (<input type="checkbox" {...register('sharedName')} />), if values are set using defaultValues then they cannot be reliably unset. This only seems to occur in the v7.6 version.
Describe the bug
When using the non array version of multiple checkboxes, (
<input type="checkbox" {...register('sharedName')} />
), if values are set usingdefaultValues
then they cannot be reliably unset. This only seems to occur in the v7.6 version.To Reproduce
Use this sandbox for the following scenarios; https://codesandbox.io/s/youthful-haze-rx39o
All selected as default scenario:
meal1
, try to deselect any of the checkboxesSome selected as default scenario:
meal2
, try to toggle the checkboxeslunch
andsupper
are always present ignoring any other valuesNo values selected as default:
meal3
([]
) andmeal4
(undefined
) work correctly and are there for counter examples.Codesandbox link (Required)
https://codesandbox.io/s/youthful-haze-rx39o
Expected behavior
All default value combinations should work consistently allowing default selected checkboxes to be deselected.
Desktop (please complete the following information):
(I think this is unrelated to at least browser)
The text was updated successfully, but these errors were encountered: