Skip to content

Commit b4483f7

Browse files
authored
fix: onOpenChange being called twice (#117)
* fix: `onOpenChange` being called twice * remove logs
1 parent 1ae297c commit b4483f7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changeset/lazy-dots-report.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vaul-svelte": patch
3+
---
4+
5+
fix: `onOpenChange` being called twice

packages/vaul-svelte/src/lib/components/drawer/drawer.svelte

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
() => rootState.open.current,
8585
(o) => {
8686
rootState.onDialogOpenChange(o);
87-
rootState.handleOpenChange(o);
8887
}
8988
}
9089
{...restProps}

0 commit comments

Comments
 (0)