Skip to content

Commit

Permalink
Fix 2231 Modal overlap on double modal open (bluesky-social#2239)
Browse files Browse the repository at this point in the history
* add same multiple snapPoints to Confirm modal

* snapToIndex instead of confirm
  • Loading branch information
ansh authored Dec 18, 2023
1 parent 7af4825 commit 1cf5a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view/com/modals/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function ModalsContainer() {

useEffect(() => {
if (isModalActive) {
bottomSheetRef.current?.expand()
bottomSheetRef.current?.snapToIndex(0)
} else {
bottomSheetRef.current?.close()
}
Expand Down

0 comments on commit 1cf5a0b

Please sign in to comment.