@@ -41,7 +41,7 @@ import useThemeStyles from '@hooks/useThemeStyles';
41
41
import ControlSelection from '@libs/ControlSelection' ;
42
42
import * as DeviceCapabilities from '@libs/DeviceCapabilities' ;
43
43
import * as ErrorUtils from '@libs/ErrorUtils' ;
44
- import focusTextInputAfterAnimation from '@libs/focusTextInputAfterAnimation ' ;
44
+ import focusComposerWithDelay from '@libs/focusComposerWithDelay ' ;
45
45
import ModifiedExpenseMessage from '@libs/ModifiedExpenseMessage' ;
46
46
import Navigation from '@libs/Navigation/Navigation' ;
47
47
import Permissions from '@libs/Permissions' ;
@@ -199,7 +199,7 @@ function ReportActionItem({
199
199
const [ moderationDecision , setModerationDecision ] = useState < OnyxTypes . DecisionName > ( CONST . MODERATION . MODERATOR_DECISION_APPROVED ) ;
200
200
const reactionListRef = useContext ( ReactionListContext ) ;
201
201
const { updateHiddenAttachments} = useContext ( ReportAttachmentsContext ) ;
202
- const textInputRef = useRef < TextInput | HTMLTextAreaElement > ( ) ;
202
+ const textInputRef = useRef < TextInput | HTMLTextAreaElement > ( null ) ;
203
203
const popoverAnchorRef = useRef < Exclude < ReportActionContextMenu . ContextMenuAnchor , TextInput > > ( null ) ;
204
204
const downloadedPreviews = useRef < string [ ] > ( [ ] ) ;
205
205
const prevDraftMessage = usePrevious ( draftMessage ) ;
@@ -274,7 +274,7 @@ function ReportActionItem({
274
274
return ;
275
275
}
276
276
277
- focusTextInputAfterAnimation ( textInputRef . current , 100 ) ;
277
+ focusComposerWithDelay ( textInputRef . current ) ( true ) ;
278
278
} , [ prevDraftMessage , draftMessage ] ) ;
279
279
280
280
useEffect ( ( ) => {
0 commit comments