Skip to content

Commit

Permalink
fix: #1418
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokada committed Aug 24, 2024
1 parent 9cb9e52 commit 963c2d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/forms/Radio.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@
export let group: number | string | undefined = undefined;
export let value: number | string = '';
export let spacing: string = $$slots.default ? 'me-2' : '';
export let checked: boolean = false;
// tinted if put in component having its own background
let background: boolean = getContext('background');
$: if (checked && group === undefined) {
group = value;
}
</script>

<Label class={labelClass(inline, $$props.class)} show={$$slots.default}>
Expand Down

0 comments on commit 963c2d0

Please sign in to comment.