about summary refs log tree commit diff
path: root/src/view/com
diff options
context:
space:
mode:
authorAnsh <anshnanda10@gmail.com>2023-12-19 03:56:43 +0530
committerGitHub <noreply@github.com>2023-12-18 14:26:43 -0800
commit1cf5a0b0fcd6bd44175eb8677f9f43fe22ffed08 (patch)
tree3187f5af6f1581d90ef5e7f24f526837d0f3b00c /src/view/com
parent7af482591195d8a5fc1f02b4cddbe41a583e8108 (diff)
downloadvoidsky-1cf5a0b0fcd6bd44175eb8677f9f43fe22ffed08.tar.zst
Fix 2231 Modal overlap on double modal open (#2239)
* add same multiple snapPoints to Confirm modal

* snapToIndex instead of confirm
Diffstat (limited to 'src/view/com')
-rw-r--r--src/view/com/modals/Modal.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/com/modals/Modal.tsx b/src/view/com/modals/Modal.tsx
index 90629d33d..2aac20dac 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()
     }