We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ac7950 commit eec472bCopy full SHA for eec472b
src/components/Composer/index.js
@@ -307,19 +307,19 @@ class Composer extends React.Component {
307
* @param {ClipboardEvent} event
308
*/
309
handlePaste(event) {
310
- event.preventDefault();
311
-
312
const isVisible = this.props.checkComposerVisibility();
313
const isFocused = this.textInput.isFocused();
314
315
if (!(isVisible || isFocused)) {
316
return;
317
}
318
319
- if (this.textInput.id !== event.target.id) {
+ if (this.textInput !== event.target) {
320
321
322
+ event.preventDefault();
+
323
const {files, types} = event.clipboardData;
324
const TEXT_HTML = 'text/html';
325
0 commit comments