Skip to content

armgit / vaul

Public Imported from GitHub
0

A drawer component for React.

Fix close bug (#101)

Emil Kowalski58181569687c
diff --git a/src/index.tsx b/src/index.tsx
index 56f74a3..e91449b 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -352,11 +352,13 @@ function Root({
setTimeout(() => {
setIsOpen(false);
setVisible(false);
+ }, 300);
+ setTimeout(() => {
if (snapPoints) {
setActiveSnapPoint(snapPoints[0]);
}
- }, ANIMATION_DURATION);
+ }, 500);
}
React.useEffect(() => {