Skip to content

Commit

Permalink
Revert "chore: remove all selection ranges during navigation"
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGable authored Jun 10, 2024
1 parent d8d528d commit 628c5a7
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 628c5a7

Please sign in to comment.