From 1fbbbb0c68f3435e64f11b16fa2ca0a1f9fd50e4 Mon Sep 17 00:00:00 2001 From: jeet-dhandha <78416198+jeet-dhandha@users.noreply.github.com> Date: Fri, 13 Oct 2023 20:13:21 +0530 Subject: [PATCH] Update src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js Co-authored-by: Joel Davies --- .../home/report/ReportActionCompose/ComposerWithSuggestions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js index 1b407bc4bea6..7077f2a01b14 100644 --- a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js +++ b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js @@ -491,7 +491,7 @@ function ComposerWithSuggestions({ }, [focus, prevIsFocused, prevIsModalVisible, isFocused, modal.isVisible, isNextModalWillOpenRef]); useEffect(() => { - // Set the `selection at end` and `scrolls input to bottom` for `Web Platforms`. + // Scrolls the composer to the bottom and sets the selection to the end, so that longer drafts are easier to edit updateMultilineInputRange(textInputRef.current, shouldAutoFocus); if (value.length === 0) {