From 78c72ea7ec08fb5848b54b0583de9220c1e3362d Mon Sep 17 00:00:00 2001 From: Youssef Lourayad Date: Wed, 13 Sep 2023 06:46:22 +0800 Subject: [PATCH] Merge pull request #27301 from Expensify/revert-26964-fix/26702 Revert "Fix: Keyboard shouldn't be active/enabled automatically for request details" (cherry picked from commit 7be4a0b2101b7b0d759b65f11f24d5645a615704) --- .../home/report/ReportActionCompose/ComposerWithSuggestions.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js index 6a29c5b6cfef..da95fdf76b5d 100644 --- a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js +++ b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js @@ -111,8 +111,7 @@ function ComposerWithSuggestions({ const maxComposerLines = isSmallScreenWidth ? CONST.COMPOSER.MAX_LINES_SMALL_SCREEN : CONST.COMPOSER.MAX_LINES; const isEmptyChat = useMemo(() => _.size(reportActions) === 1, [reportActions]); - const parentAction = ReportActionsUtils.getParentReportAction(report); - const shouldAutoFocus = !modal.isVisible && (shouldFocusInputOnScreenFocus || (isEmptyChat && !ReportActionsUtils.isTransactionThread(parentAction))) && shouldShowComposeInput; + const shouldAutoFocus = !modal.isVisible && (shouldFocusInputOnScreenFocus || isEmptyChat) && shouldShowComposeInput; const valueRef = useRef(value); valueRef.current = value;