We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5829323 + 9d1c506 commit bd43fe7Copy full SHA for bd43fe7
src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx
@@ -678,6 +678,12 @@ function ComposerWithSuggestions(
678
// eslint-disable-next-line no-param-reassign
679
isNextModalWillOpenRef.current = false;
680
}
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
687
// We want to focus or refocus the input when a modal has been closed or the underlying screen is refocused.
688
// We avoid doing this on native platforms since the software keyboard popping
689
// open creates a jarring and broken UX.
0 commit comments