We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa9567b commit 250b392Copy full SHA for 250b392
1 file changed
src/pages/inbox/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx
@@ -287,7 +287,7 @@ function ComposerWithSuggestions({
287
288
const {shouldUseNarrowLayout} = useResponsiveLayout();
289
const maxComposerLines = shouldUseNarrowLayout ? CONST.COMPOSER.MAX_LINES_SMALL_SCREEN : CONST.COMPOSER.MAX_LINES;
290
- const shouldAutoFocus = (shouldFocusInputOnScreenFocus || !!initialText) && shouldShowComposeInput && areAllModalsHidden() && isFocused;
+ const shouldAutoFocus = (shouldFocusInputOnScreenFocus || !!value) && shouldShowComposeInput && areAllModalsHidden() && isFocused;
291
const delayedAutoFocusRouteKeyRef = useRef<string | null>(null);
292
293
const valueRef = useRef(initialText);
0 commit comments