Skip to content

Commit 883e3c8

Browse files
authored
fixed focus (#1019)
1 parent d746198 commit 883e3c8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/react/src/views/ChatInput/ChatInput.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,10 @@ const ChatInput = ({ scrollToBottom }) => {
163163
if (editMessage.attachments) {
164164
messageRef.current.value =
165165
editMessage.attachments[0]?.description || editMessage.msg;
166+
messageRef.current.focus();
166167
} else if (editMessage.msg) {
167168
messageRef.current.value = editMessage.msg;
169+
messageRef.current.focus();
168170
} else {
169171
messageRef.current.value = '';
170172
}

0 commit comments

Comments
 (0)