From 1d6519cff8b36f996a73beaef4f9b618a9b4501d Mon Sep 17 00:00:00 2001 From: Wildan Muhlis Date: Wed, 22 Jan 2025 16:44:11 +0700 Subject: [PATCH] Fix report auto scroll in search panel --- src/pages/home/report/ReportActionsList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionsList.tsx b/src/pages/home/report/ReportActionsList.tsx index d3dac4e1d2b91..51188c7382ca6 100644 --- a/src/pages/home/report/ReportActionsList.tsx +++ b/src/pages/home/report/ReportActionsList.tsx @@ -448,7 +448,7 @@ function ReportActionsList({ InteractionManager.runAfterInteractions(() => { // If a new comment is added and it's from the current user scroll to the bottom otherwise leave the user positioned where // they are now in the list. - if (!isFromCurrentUser || !isReportScreenTopmostCentralPane()) { + if (!isFromCurrentUser || (!isReportScreenTopmostCentralPane() && !Navigation.getReportRHPActiveRoute())) { return; } if (!hasNewestReportActionRef.current) {