Skip to content

Commit

Permalink
Merge pull request #56293 from wildan-m/wildan/fix/52878-not-auto-scr…
Browse files Browse the repository at this point in the history
…oll-search

Fix new message not auto scrolled in search RHP
  • Loading branch information
AndrewGable authored Feb 6, 2025
2 parents d34b600 + 811238e commit ba9e3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ function ReportActionsList({
setIsFloatingMessageCounterVisible(false);
// 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) {
Expand Down

0 comments on commit ba9e3fc

Please sign in to comment.