Skip to content

Commit bd43fe7

Browse files
authored
Merge pull request #42255 from ZhenjaHorbach/mention-delay-in-removing-mention-list-when-pressing-cmd-k
Delay in removing mention list when pressing CMD+K
2 parents 5829323 + 9d1c506 commit bd43fe7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,12 @@ function ComposerWithSuggestions(
678678
// eslint-disable-next-line no-param-reassign
679679
isNextModalWillOpenRef.current = false;
680680
}
681+
682+
// We want to blur the input immediately when a screen is out of focus.
683+
if (!isFocused) {
684+
textInputRef.current?.blur();
685+
}
686+
681687
// We want to focus or refocus the input when a modal has been closed or the underlying screen is refocused.
682688
// We avoid doing this on native platforms since the software keyboard popping
683689
// open creates a jarring and broken UX.

0 commit comments

Comments
 (0)