Skip to content

Commit

Permalink
Merge pull request #42255 from ZhenjaHorbach/mention-delay-in-removin…
Browse files Browse the repository at this point in the history
…g-mention-list-when-pressing-cmd-k

Delay in removing mention list when pressing CMD+K
  • Loading branch information
AndrewGable authored Jun 3, 2024
2 parents 5829323 + 9d1c506 commit bd43fe7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,12 @@ function ComposerWithSuggestions(
// eslint-disable-next-line no-param-reassign
isNextModalWillOpenRef.current = false;
}

// We want to blur the input immediately when a screen is out of focus.
if (!isFocused) {
textInputRef.current?.blur();
}

// We want to focus or refocus the input when a modal has been closed or the underlying screen is refocused.
// We avoid doing this on native platforms since the software keyboard popping
// open creates a jarring and broken UX.
Expand Down

0 comments on commit bd43fe7

Please sign in to comment.