From 730b7b3119c5cfcf96b0eff833bb6cb2492380b8 Mon Sep 17 00:00:00 2001 From: Cristi Paval Date: Tue, 17 Mar 2026 09:59:20 +0200 Subject: [PATCH] Revert "Fix : Not able to focus on main composer while edit composer is open." --- .../ComposerWithSuggestions/ComposerWithSuggestions.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/inbox/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx b/src/pages/inbox/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx index cc6f4c94989b5..c88c6762724a7 100644 --- a/src/pages/inbox/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx +++ b/src/pages/inbox/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx @@ -314,15 +314,13 @@ function ComposerWithSuggestions({ */ const setTextInputRef = useCallback( (el: TextInput) => { - if (isFocused) { - ReportActionComposeFocusManager.composerRef.current = el; - } + ReportActionComposeFocusManager.composerRef.current = el; textInputRef.current = el; if (typeof animatedRef === 'function') { animatedRef(el); } }, - [animatedRef, isFocused], + [animatedRef], ); const resetKeyboardInput = useCallback(() => {