Skip to content

Commit

Permalink
[ToggleButton] Remove |global modifier from transition (doesn't app…
Browse files Browse the repository at this point in the history
…ear required anymore and should fix SvelteKit routing
  • Loading branch information
techniq committed Nov 13, 2023
1 parent c046b08 commit 14041fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/forty-rabbits-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

[ToggleButton] Remove `|global` modifier from transition (doesn't appear required anymore and should fix SvelteKit routing
2 changes: 1 addition & 1 deletion packages/svelte-ux/src/lib/components/ToggleButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{#if transition}
{#if on}
<!-- Transition delays unmounting to allow children to transition (ex. Drawer/Dialog) -->
<div transition:transition|global={transitionParams}>
<div transition:transition={transitionParams}>
<slot name="toggle" {on} {toggle} {toggleOn} {toggleOff} />
</div>
{/if}
Expand Down

1 comment on commit 14041fd

@vercel
Copy link

@vercel vercel bot commented on 14041fd Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.