Skip to content

Commit

Permalink
Update src/pages/home/report/ReportActionCompose/ComposerWithSuggesti…
Browse files Browse the repository at this point in the history
…ons.js

Co-authored-by: Joel Davies <joeld.dev@gmail.com>
  • Loading branch information
jeet-dhandha and jjcoffee authored Oct 13, 2023
1 parent fbb9dac commit 1fbbbb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1fbbbb0

Please sign in to comment.