Skip to content

Commit

Permalink
docs: checkbox values missing on multiple checkbox for forms (#1410)
Browse files Browse the repository at this point in the history
  • Loading branch information
lapppius authored Oct 31, 2024
1 parent c832188 commit d947b82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<Checkbox
{...props}
{checked}
value={item.id}
onCheckedChange={(v) => {
if (v) {
addItem(item.id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<Checkbox
{...props}
{checked}
value={item.id}
onCheckedChange={(v) => {
if (v) {
addItem(item.id);
Expand All @@ -98,13 +99,6 @@
<Form.Label class="text-sm font-normal">
{item.label}
</Form.Label>
<input
hidden
type="checkbox"
name={props.name}
value={item.id}
{checked}
/>
{/snippet}
</Form.Control>
</div>
Expand Down

0 comments on commit d947b82

Please sign in to comment.