Skip to content

Commit 82cae96

Browse files
committed
Revert "fix: attempt to fix android modal dismiss zoom (#2183)"
This reverts commit ff36899.
1 parent 7f0a32c commit 82cae96

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/features/shared/DynamicDismissableModal.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,8 @@ export function DynamicDismissableModal({
151151
canDismiss={canDismiss ? canDismiss : onDismissAttemptCb}
152152
onDidDismiss={() => {
153153
setIsOpen(false);
154+
setPresentingElement(undefined);
154155

155-
// Attempt to fix https://github.com/aeharding/voyager/issues/2183
156-
requestAnimationFrame(() => {
157-
requestAnimationFrame(() => {
158-
setPresentingElement(undefined);
159-
});
160-
});
161156
// in case onDidDismiss incorrectly called by Ionic, don't clear data
162157
if (textRecovery && canDismissRef_.current) clearRecoveredText();
163158

0 commit comments

Comments
 (0)