Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit 7acf36b

Browse files
committed
feat: 메시지 전송 후 scroll to bottom delay 적용
1 parent 9ccd7a0 commit 7acf36b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/tds-widget/src/chat/chat/chat-room-messages/use-chat-room-messages.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ export function useChatMessages<T = UserType>(
117117
action: MessagesActions.PENDING,
118118
message: tempMessage,
119119
})
120-
triggerScrollToBottom()
120+
setTimeout(() => {
121+
triggerScrollToBottom()
122+
}, 100)
121123
}
122124

123125
try {

0 commit comments

Comments
 (0)