Skip to content

Commit

Permalink
feat: allow setting AlertDialog openFocus & closeFocus props
Browse files Browse the repository at this point in the history
  • Loading branch information
tmarnet authored Nov 10, 2023
1 parent 75a4482 commit ecd6a4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/bits/alert-dialog/components/AlertDialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
export let forceVisible: $$Props["forceVisible"] = true;
export let open: $$Props["open"] = undefined;
export let onOpenChange: $$Props["onOpenChange"] = undefined;
export let openFocus: $$Props["openFocus"] = undefined;
export let closeFocus: $$Props["closeFocus"] = undefined;
const {
states: { open: localOpen },
Expand Down Expand Up @@ -49,6 +51,8 @@
$: updateOption("closeOnOutsideClick", closeOnOutsideClick);
$: updateOption("portal", portal);
$: updateOption("forceVisible", forceVisible);
$: updateOption("openFocus", openFocus);
$: updateOption("closeFocus", closeFocus);
</script>

<slot ids={$idValues} />

0 comments on commit ecd6a4f

Please sign in to comment.