Skip to content

Commit

Permalink
fix: can be clicked through the overlay on IOS
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1teee committed Mar 27, 2023
1 parent d758b07 commit b9a2d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ export const BottomSheet = React.forwardRef<
if (onDismiss && closeOnTap && tap) {
cancel()
// Runs onDismiss in a timeout to avoid tap events on the backdrop from triggering click events on elements underneath
setTimeout(() => onDismiss(), 0)
setTimeout(() => onDismiss(), 10)
return memo
}

Expand Down

0 comments on commit b9a2d95

Please sign in to comment.