diff options
author | Ansh <anshnanda10@gmail.com> | 2023-12-19 03:56:43 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-18 14:26:43 -0800 |
commit | 1cf5a0b0fcd6bd44175eb8677f9f43fe22ffed08 (patch) | |
tree | 3187f5af6f1581d90ef5e7f24f526837d0f3b00c /src | |
parent | 7af482591195d8a5fc1f02b4cddbe41a583e8108 (diff) | |
download | voidsky-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')
-rw-r--r-- | src/view/com/modals/Modal.tsx | 2 |
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() } |