Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/components/bottomSheetModal/BottomSheetModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,11 @@ function BottomSheetModalComponent<T = never>(
* then we unmount the node and early exit.
*/
if (
[MODAL_STATUS.CLOSED, MODAL_STATUS.MINIMIZED].includes(
statusRef.current
) ||
[
MODAL_STATUS.INITIAL,
MODAL_STATUS.CLOSED,
MODAL_STATUS.MINIMIZED,
].includes(statusRef.current) ||
(statusRef.current === MODAL_STATUS.DISMISSING &&
currentIndexRef.current === -1)
) {
Expand Down
Loading