From 1cf5a0b0fcd6bd44175eb8677f9f43fe22ffed08 Mon Sep 17 00:00:00 2001 From: Ansh Date: Tue, 19 Dec 2023 03:56:43 +0530 Subject: [PATCH] Fix 2231 Modal overlap on double modal open (#2239) * add same multiple snapPoints to Confirm modal * snapToIndex instead of confirm --- src/view/com/modals/Modal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/com/modals/Modal.tsx b/src/view/com/modals/Modal.tsx index 90629d33d3..2aac20dacc 100644 --- a/src/view/com/modals/Modal.tsx +++ b/src/view/com/modals/Modal.tsx @@ -82,7 +82,7 @@ export function ModalsContainer() { useEffect(() => { if (isModalActive) { - bottomSheetRef.current?.expand() + bottomSheetRef.current?.snapToIndex(0) } else { bottomSheetRef.current?.close() }