Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/components/Composer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ class Composer extends React.Component {
try {
document.execCommand('insertText', false, markdownText);
this.updateNumberOfLines();

// Pointer will go out of sight when a large paragraph is pasted on the web. Refocusing the input keeps the cursor in view.
this.textInput.blur();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment will be useful.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment added.

this.textInput.focus();
// eslint-disable-next-line no-empty
} catch (e) {}
}
Expand Down
2 changes: 0 additions & 2 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,6 @@ class ReportActionCompose extends React.Component {
if (newComment) {
this.debouncedBroadcastUserIsTyping();
}

this.textInput.scrollTop = this.textInput.scrollHeight;
}

/**
Expand Down