Skip to content

Commit

Permalink
Merge pull request #22817 from robertKozik/16098-followup
Browse files Browse the repository at this point in the history
22803 - Pasting text or link in edit message pastes the text or link in main compose box
  • Loading branch information
cristipaval authored Jul 13, 2023
2 parents 6e6b95f + 54ae8ba commit a306694
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Composer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,11 @@ class Composer extends React.Component {
* @param {ClipboardEvent} event
*/
handlePaste(event) {
if (!this.props.checkComposerVisibility() && !this.state.isFocused) {
if (!this.props.checkComposerVisibility()) {
return;
}

if (['INPUT', 'TEXTAREA'].includes(event.target.nodeName)) {
return;
}

Expand Down

0 comments on commit a306694

Please sign in to comment.