Fix drag and drop link to composebox (#12055)

th-downstream
Jeong Arm 5 years ago committed by Eugen Rochko
parent 722f448000
commit 345898e920

@ -327,7 +327,7 @@ class UI extends React.PureComponent {
}
dataTransferIsText = (dataTransfer) => {
return (dataTransfer && Array.from(dataTransfer.types).includes('text/plain') && dataTransfer.items.length === 1);
return (dataTransfer && Array.from(dataTransfer.types).filter((type) => type === 'text/plain').length === 1);
}
closeUploadModal = () => {

Loading…
Cancel
Save