diff --git a/src/compose/ComposeBox.js b/src/compose/ComposeBox.js index de2b88817b5..2bc14c7d5ee 100644 --- a/src/compose/ComposeBox.js +++ b/src/compose/ComposeBox.js @@ -448,6 +448,7 @@ const ComposeBox: React$AbstractComponent = forwardRef( _, }); setMessageInputValue(state => state.value.replace(quotingPlaceholder, quoteAndReplyText)); + messageInputRef.current?.focus(); } finally { setActiveQuoteAndRepliesCount(v => v - 1); activeInvocations.current = activeInvocations.current.filter(x => x !== serialNumber); @@ -464,6 +465,7 @@ const ComposeBox: React$AbstractComponent = forwardRef( topicSelectionAllowed, topicInputState.value, setTopicInputValue, + messageInputRef, ], ); useImperativeHandle(ref, () => ({ doQuoteAndReply }), [doQuoteAndReply]);