Skip to content

Commit bf323fd

Browse files
author
Sravan S
authored
feat: Keep keyboard open after sending the message (#659)
This is default how it is in Mobile world Also, its good practice to focus on Input on desktop Fixes: https://sendbird.atlassian.net/browse/SBISSUE-12824
1 parent 55c848f commit bf323fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ui/MessageInput/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ const MessageInput = React.forwardRef((props, ref) => {
360360
const params = { message: messageText, mentionTemplate };
361361
onSendMessage(params);
362362
resetInput(ref);
363+
// important: keeps the keyboard open -> must add test on refactor
364+
textField.focus();
363365
setIsInput(false);
364366
setHeight();
365367
}

0 commit comments

Comments
 (0)