Skip to content

Commit

Permalink
ix: clean the listeners immediately in should apply
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloricciuti committed Oct 15, 2023
1 parent 5bc7228 commit 7aaa3e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/good-walls-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'sveltekit-view-transition': patch
---

fix: clean the listeners immediately in should apply
2 changes: 1 addition & 1 deletion src/lib/sveltekit-view-transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ function transition(node: HTMLElement | SVGElement, props: string | TransitionAc
off_functions.push(off_finished);
return () => {
off_functions.forEach((off) => {
off(true);
off(false);
});
};
}
Expand Down

1 comment on commit 7aaa3e4

@vercel
Copy link

@vercel vercel bot commented on 7aaa3e4 Oct 15, 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.