Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悾 determine checkbox group by defaultValues #7938

Conversation

tedliang
Copy link
Contributor

@tedliang tedliang commented Feb 28, 2022

As mentioned in here

I would like to avoid this above, as this is troublesome as it depends on the number of the checkbox to determine defaultValue while it's more predictable for the user to simplify supply with a default value as an empty array for the lib to fallback.

For checkbox field, the return type will be determined by the type of value passed in field register options.

close #8204

@stale
Copy link

stale bot commented Mar 30, 2022

Thank you for your contributions! This Pull Request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Best, RHF Team 鉂わ笍

@stale stale bot added the stale label Mar 30, 2022
@stale
Copy link

stale bot commented Apr 9, 2022

Thank you for your contributions! This Pull Request is being closed because it has not had any recent activity. Feel free to re-open the issue and begin work again! Best, RHF Team 鉂わ笍

@stale stale bot closed this Apr 9, 2022
@bluebill1049 bluebill1049 reopened this Apr 15, 2022
@bluebill1049 bluebill1049 changed the title Determine checkbox group by type of reference value 馃悾 determine checkbox group by defaultValues Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

improve checkboxes behaviour
2 participants