Skip to content

Commit 7f010c3

Browse files
authored
Merge pull request Expensify#88179 from callstack-internal/VickyStash/bugfix/88174-scroll-issue
[CP Staging] Fix iOS-Self DM-App not scroll down after created the new expense in self DM
2 parents cd59e40 + bbc42fb commit 7f010c3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/pages/inbox/report/ReportActionsList.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,10 @@ function ReportActionsList({
541541
}
542542
} else {
543543
setIsFloatingMessageCounterVisible(false);
544-
reportScrollManager.scrollToBottom();
544+
// Wait for the next frame so the list has laid out new items before scrolling
545+
requestAnimationFrame(() => {
546+
reportScrollManager.scrollToBottom();
547+
});
545548
}
546549

547550
setIsScrollToBottomEnabled(true);

0 commit comments

Comments
 (0)