Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,13 @@ function ComposerWithSuggestions(
focus(true);
}, [focus, prevIsFocused, editFocused, prevIsModalVisible, isFocused, modal?.isVisible, isNextModalWillOpenRef, shouldAutoFocus]);

useEffect(() => {
if (prevIsFocused || !isFocused || showSoftInputOnFocus) {
return;
}
setShowSoftInputOnFocus(true);
}, [isFocused, prevIsFocused, showSoftInputOnFocus, setShowSoftInputOnFocus]);

useEffect(() => {
// Scrolls the composer to the bottom and sets the selection to the end, so that longer drafts are easier to edit
updateMultilineInputRange(textInputRef.current, !!shouldAutoFocus);
Expand Down