Skip to content

Commit

Permalink
Fix close bug (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkowalski committed Sep 19, 2023
1 parent b7c05a0 commit 5818156
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,13 @@ function Root({
setTimeout(() => {
setIsOpen(false);
setVisible(false);
}, 300);

setTimeout(() => {
if (snapPoints) {
setActiveSnapPoint(snapPoints[0]);
}
}, ANIMATION_DURATION);
}, 500);
}

React.useEffect(() => {
Expand Down

0 comments on commit 5818156

Please sign in to comment.