Skip to content

Commit

Permalink
Merge pull request #27301 from Expensify/revert-26964-fix/26702
Browse files Browse the repository at this point in the history
Revert "Fix: Keyboard shouldn't be active/enabled automatically for request details"

(cherry picked from commit 7be4a0b)
  • Loading branch information
youssef-lr authored and OSBotify committed Sep 13, 2023
1 parent 0400242 commit 78c72ea
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 78c72ea

Please sign in to comment.