mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-29 07:03:16 +01:00
Fix drag and drop link to composebox (#12055)
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user