Skip to content

Commit

Permalink
Revert "Fix: Keyboard shouldn't be active/enabled automatically for r…
Browse files Browse the repository at this point in the history
…equest details"
  • Loading branch information
AndrewGable authored Sep 12, 2023
1 parent 54085f9 commit ac1f0f3
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 ac1f0f3

Please sign in to comment.