From 8a79ec650fa440de7c593fe34435306480c4d5b1 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Mon, 10 Jun 2024 15:11:21 -0600 Subject: [PATCH] Merge pull request #43431 from Expensify/revert-42961-fix/41197 Revert "chore: remove all selection ranges during navigation" (cherry picked from commit e1f1d7c7cacbc2ddae8891137ec774d6d411abea) --- src/libs/Navigation/NavigationRoot.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libs/Navigation/NavigationRoot.tsx b/src/libs/Navigation/NavigationRoot.tsx index 9e1eb348451b..06a3dce8d59a 100644 --- a/src/libs/Navigation/NavigationRoot.tsx +++ b/src/libs/Navigation/NavigationRoot.tsx @@ -135,11 +135,6 @@ function NavigationRoot({authenticated, lastVisitedPath, initialUrl, onReady}: N // We want to clean saved scroll offsets for screens that aren't anymore in the state. cleanStaleScrollOffsets(state); - - // clear all window selection on navigation - // this is to prevent the selection from persisting when navigating to a new page in web - // using "?" to avoid crash in native - window?.getSelection?.()?.removeAllRanges?.(); }; return (