mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-10 09:29:18 +00:00
Fix drag and drop link to composebox (#12055)
This commit is contained in:
parent
ea8c781ec7
commit
3abe003f59
|
@ -327,7 +327,7 @@ class UI extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
dataTransferIsText = (dataTransfer) => {
|
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 = () => {
|
closeUploadModal = () => {
|
||||||
|
|
Loading…
Reference in a new issue