1
0
mirror of https://framagit.org/tykayn/mastodon.git synced 2023-08-25 08:33:12 +02:00

Fix drag and drop link to composebox ()

This commit is contained in:
Jeong Arm 2019-10-03 00:10:56 +09:00 committed by Eugen Rochko
parent ea8c781ec7
commit 3abe003f59

View File

@ -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 = () => {