Skip to content
Snippets Groups Projects
Commit 3abe003f authored by Jeong Arm's avatar Jeong Arm Committed by Eugen Rochko
Browse files

Fix drag and drop link to composebox (#12055)

parent ea8c781e
No related branches found
No related tags found
No related merge requests found
......@@ -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 = () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment