Skip to content

Commit

Permalink
Revert "22803 - Pasting text or link in edit message pastes the text …
Browse files Browse the repository at this point in the history
…or link in main compose box"
  • Loading branch information
francoisl authored Jul 13, 2023
1 parent 531dba8 commit 33cf4c7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/Composer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,7 @@ class Composer extends React.Component {
* @param {ClipboardEvent} event
*/
handlePaste(event) {
if (!this.props.checkComposerVisibility()) {
return;
}

if (['INPUT', 'TEXTAREA'].includes(event.target.nodeName)) {
if (!this.props.checkComposerVisibility() && !this.state.isFocused) {
return;
}

Expand Down

0 comments on commit 33cf4c7

Please sign in to comment.