diff --git a/src/components/bottomSheet/BottomSheet.tsx b/src/components/bottomSheet/BottomSheet.tsx index 673451787..4bc4cf835 100644 --- a/src/components/bottomSheet/BottomSheet.tsx +++ b/src/components/bottomSheet/BottomSheet.tsx @@ -338,10 +338,6 @@ const BottomSheetComponent = forwardRef( if (_providedOnChange) { _providedOnChange(index); } - - if (isClosing.current && (index === 0 || index === -1)) { - isClosing.current = false; - } }); const handleSettingScrollableRef = useCallback( (scrollableRef: ScrollableRef) => { @@ -539,6 +535,11 @@ const BottomSheetComponent = forwardRef( call([currentPosition], args => { const currentPositionIndex = snapPoints.indexOf(args[0]); + /** + * reset is closing + */ + isClosing.current = false; + /** * if animation was interrupted, we ignore the change. */