[Glitch] Fix drag and drop link to composebox
Port 345898e920
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
lolsob-rspec
parent
ddf497ede4
commit
a230f5879a
|
@ -320,7 +320,7 @@ class UI extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
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 New Issue