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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow bind:group and value props to Checkbox #557

Open
yan5 opened this issue Jul 28, 2023 · 1 comment
Open

Allow bind:group and value props to Checkbox #557

yan5 opened this issue Jul 28, 2023 · 1 comment
Assignees

Comments

@yan5
Copy link

yan5 commented Jul 28, 2023

The default checkbox allows as shown below:

https://svelte.dev/repl/1565708677134e418e256234984d90ef

@TheHadiAhmadi
Copy link
Contributor

@yan5 for these situations you can use CheckboxGroup component.

Check here: https://svelte.dev/repl/e7b012b4088f4437aac2dd053422420b?version=4.1.1

bind:group doesn't work with Checkbox component in svelte (only works if all <input type="checkbox"... are in same file). sveltejs/svelte#2308

@TheHadiAhmadi TheHadiAhmadi self-assigned this Jul 29, 2023
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

No branches or pull requests

2 participants