From 7d5ebe82133919b4fbf5f45c0feb8191d5f4445f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucien=20Akchot=C3=A9?= Date: Tue, 30 Jan 2024 12:50:55 +0100 Subject: [PATCH] Merge pull request #35386 from Expensify/lucien/revert-scroll-pr [CP Staging] Revert #34485 (cherry picked from commit 6c9219c63c037e2d053ed8037df122aa1d537f7a) --- src/components/SelectionList/BaseSelectionList.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/components/SelectionList/BaseSelectionList.tsx b/src/components/SelectionList/BaseSelectionList.tsx index 815b80aaa50e..f3f609590101 100644 --- a/src/components/SelectionList/BaseSelectionList.tsx +++ b/src/components/SelectionList/BaseSelectionList.tsx @@ -353,11 +353,6 @@ function BaseSelectionList( return; } - // scroll is unnecessary if multiple options cannot be selected - if (!canSelectMultiple) { - return; - } - // set the focus on the first item when the sections list is changed if (sections.length > 0) { updateAndScrollToFocusedIndex(0);