Skip to content

Commit

Permalink
forward more props
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Nov 16, 2024
1 parent 1a35dd6 commit 625326d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@
const mergedProps = $derived(mergeProps(restProps, contentState.props));
</script>

<DialogPrimitive.Content {...mergedProps} {preventScroll}>
<DialogPrimitive.Content
{...mergedProps}
{preventScroll}
onInteractOutside={contentState.onInteractOutside}
onFocusOutside={contentState.onFocusOutside}
onOpenAutoFocus={contentState.onOpenAutoFocus}
>
{@render children?.()}
<Mounted onMounted={(m) => (contentState.mounted = m)} />
</DialogPrimitive.Content>

0 comments on commit 625326d

Please sign in to comment.