Skip to content

Commit 861ded7

Browse files
committed
send chat: scroll again just in case
1 parent 302521d commit 861ded7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/packages/frontend/chat/chatroom.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,9 @@ export const ChatRoom: React.FC<Props> = ({ project_id, path, is_visible }) => {
458458
const input = submitMentionsRef.current?.();
459459
scrollToBottomRef.current?.(true);
460460
actions.send_chat({ input });
461+
setTimeout(() => {
462+
scrollToBottomRef.current?.(true);
463+
}, 100);
461464
}
462465

463466
function render_body(): JSX.Element {

0 commit comments

Comments
 (0)