From 517669588ec11545d3235aed52ab4bbba48ef573 Mon Sep 17 00:00:00 2001 From: Huu Le <20178761+huult@users.noreply.github.com> Date: Fri, 14 Mar 2025 18:35:55 +0700 Subject: [PATCH] call scrollToBottom when create new expense --- src/pages/home/report/ReportActionsList.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionsList.tsx b/src/pages/home/report/ReportActionsList.tsx index 5c140589e4f3..c0decf254617 100644 --- a/src/pages/home/report/ReportActionsList.tsx +++ b/src/pages/home/report/ReportActionsList.tsx @@ -461,10 +461,11 @@ function ReportActionsList({ return; } + reportScrollManager.scrollToBottom(); setIsScrollToBottomEnabled(true); }); }, - [report.reportID], + [report.reportID, reportScrollManager], ); useEffect(() => { // Why are we doing this, when in the cleanup of the useEffect we are already calling the unsubscribe function?