From 8e0d5af8625501d1adf810c2a633f13fcca75a39 Mon Sep 17 00:00:00 2001 From: Taras Perun Date: Fri, 21 Jun 2024 11:24:30 +0200 Subject: [PATCH] fix scroll --- .../ComposerWithSuggestions/ComposerWithSuggestions.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx index 46477964d17b..9fd75ef543ff 100644 --- a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx +++ b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx @@ -741,6 +741,7 @@ function ComposerWithSuggestions( ); const onClear = useCallback(() => { + mobileInputScrollPosition.current = 0; setTextInputShouldClear(false); // eslint-disable-next-line react-hooks/exhaustive-deps }, []);