Skip to content

Commit

Permalink
Revert "Merge pull request Expensify#42965 from suneox/40767-handle-e…
Browse files Browse the repository at this point in the history
…dit-last-message"

This reverts commit 478db52, reversing
changes made to bb14c99.
  • Loading branch information
mananjadhav committed Jun 6, 2024
1 parent 53ffcb4 commit 747fe19
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/pages/home/report/ReportActionItemMessageEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {ExpensiMark} from 'expensify-common';
import lodashDebounce from 'lodash/debounce';
import type {ForwardedRef} from 'react';
import React, {forwardRef, useCallback, useEffect, useMemo, useRef, useState} from 'react';
import {InteractionManager, Keyboard, View} from 'react-native';
import {Keyboard, View} from 'react-native';
import type {NativeSyntheticEvent, TextInput, TextInputFocusEventData, TextInputKeyPressEventData} from 'react-native';
import {useOnyx} from 'react-native-onyx';
import type {Emoji} from '@assets/emojis/types';
Expand Down Expand Up @@ -406,11 +406,7 @@ function ReportActionItemMessageEdit(
style={[styles.textInputCompose, styles.flex1, styles.bgTransparent]}
onFocus={() => {
setIsFocused(true);
InteractionManager.runAfterInteractions(() => {
requestAnimationFrame(() => {
reportScrollManager.scrollToIndex(index, true);
});
});
reportScrollManager.scrollToIndex(index, true);
setShouldShowComposeInputKeyboardAware(false);

// Clear active report action when another action gets focused
Expand Down

0 comments on commit 747fe19

Please sign in to comment.