Skip to content

Commit

Permalink
chore: and add required...
Browse files Browse the repository at this point in the history
Signed-off-by: Tim deBoer <git@tdeboer.ca>
  • Loading branch information
deboer-tim committed Feb 16, 2024
1 parent 7b77c6e commit 469c731
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/renderer/src/lib/ui/Checkbox.svelte
Expand Up @@ -11,6 +11,7 @@ export let disabledTooltip = '';
export let title = '';
export let id: string | undefined = undefined;
export let name: string | undefined = undefined;
export let required = false;
const dispatch = createEventDispatcher<{ click: boolean }>();
Expand All @@ -27,6 +28,7 @@ function onClick(checked: boolean) {
name="{name}"
bind:checked="{checked}"
disabled="{disabled}"
required="{required}"
class="sr-only"
on:click="{event => onClick(event.currentTarget.checked)}" />
<div
Expand Down

0 comments on commit 469c731

Please sign in to comment.