Skip to content

Commit

Permalink
Merge pull request #43431 from Expensify/revert-42961-fix/41197
Browse files Browse the repository at this point in the history
Revert "chore: remove all selection ranges during navigation"
  • Loading branch information
luacmartins authored Jun 10, 2024
2 parents d8d528d + 628c5a7 commit e1f1d7c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/libs/Navigation/NavigationRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit e1f1d7c

Please sign in to comment.