From 8a9276cc75d7e23c1f63d4fe2925c8a9c050af84 Mon Sep 17 00:00:00 2001 From: lapppius <73820845+lapppius@users.noreply.github.com> Date: Thu, 31 Oct 2024 12:01:27 +0200 Subject: [PATCH] Fix for checkbox values missing on multiple checkbox group for forms. This fixes the 'on' value return on formdata for each checkbox when the value is missing https://next.bits-ui.com/docs/components/checkbox#html-forms --- .../default/example/checkbox-form-multiple.svelte | 1 + .../new-york/example/checkbox-form-multiple.svelte | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/sites/docs/src/lib/registry/default/example/checkbox-form-multiple.svelte b/sites/docs/src/lib/registry/default/example/checkbox-form-multiple.svelte index 3b0785649..2117d63a6 100644 --- a/sites/docs/src/lib/registry/default/example/checkbox-form-multiple.svelte +++ b/sites/docs/src/lib/registry/default/example/checkbox-form-multiple.svelte @@ -87,6 +87,7 @@ { if (v) { addItem(item.id); diff --git a/sites/docs/src/lib/registry/new-york/example/checkbox-form-multiple.svelte b/sites/docs/src/lib/registry/new-york/example/checkbox-form-multiple.svelte index 645295ac2..b2f8f1292 100644 --- a/sites/docs/src/lib/registry/new-york/example/checkbox-form-multiple.svelte +++ b/sites/docs/src/lib/registry/new-york/example/checkbox-form-multiple.svelte @@ -87,6 +87,7 @@ { if (v) { addItem(item.id); @@ -98,13 +99,6 @@ {item.label} - {/snippet}