Skip to content

thebjorn/checkbox-bug

Repository files navigation

The following checkbox binding

<input {...edit_customer.fields.active.as('checkbox')} bind:checked={customer.active}>

errors with

[plugin:vite-plugin-svelte:compile] src/routes/+page.svelte:25:15 `bind:checked` can only be used with `<input type="checkbox">`
https://svelte.dev/e/bind_invalid_target

if I add type="checkbox":

<input type="checkbox" {...edit_customer.fields.active.as('checkbox')} bind:checked={customer.active}>

I get a warning

'type' is specified more than once, so this usage will be overwritten.js(2783)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published