Skip to content

Commit 3d55830

Browse files
madmax330OSBotify
authored andcommitted
Merge pull request #58469 from huult/58455-scroll-to-bottom-new-expense
[CP Staging] call scrollToBottom when create new expense (cherry picked from commit 93f6946) (CP triggered by mountiny)
1 parent 18deb90 commit 3d55830

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/home/report/ReportActionsList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,11 @@ function ReportActionsList({
461461
return;
462462
}
463463

464+
reportScrollManager.scrollToBottom();
464465
setIsScrollToBottomEnabled(true);
465466
});
466467
},
467-
[report.reportID],
468+
[report.reportID, reportScrollManager],
468469
);
469470
useEffect(() => {
470471
// Why are we doing this, when in the cleanup of the useEffect we are already calling the unsubscribe function?

0 commit comments

Comments
 (0)