FIX: prevents url of file from being pasted when pasting file on iOS (#8693)

This commit is contained in:
Joffrey JAFFEUX 2020-01-10 04:09:01 +01:00 committed by Vinoth Kannan
parent cb660ef952
commit 5ce602ecea
1 changed files with 2 additions and 2 deletions

View File

@ -842,7 +842,7 @@ export default Component.extend({
}
const isComposer = $("#reply-control .d-editor-input").is(":focus");
let { clipboard, canPasteHtml } = clipboardData(e, isComposer);
let { clipboard, canPasteHtml, canUpload } = clipboardData(e, isComposer);
let plainText = clipboard.getData("text/plain");
let html = clipboard.getData("text/html");
@ -892,7 +892,7 @@ export default Component.extend({
}
}
if (handled) {
if (handled || canUpload) {
e.preventDefault();
}
},