Why isn't bind:value allowed on checkboxes?

#14149

Discussion

Open
O
Ocean-OS
Nov 4, 2024, 9:10 PM

In Svelte, if you try to bind the value of a checkbox input, you get an error. Why is this? If I remember correctly, a checkbox's values are either "on" or its original value. I know this wouldn't be used often (if at all) but why is Svelte so strict about checkbox values being bound that there's an error code dedicated to it?

Info

Category General
Labels None