diff options
author | Jeong Arm <kjwonmail@gmail.com> | 2019-10-03 00:10:56 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-10-02 17:10:56 +0200 |
commit | 3abe003f5938fe4194bffa1127d3451eca00e321 (patch) | |
tree | 76e0b24f4516ef9429cdd73ad639720b6c1fd220 | |
parent | ea8c781ec7b2007b5f0abc463aea423aa0f1415c (diff) |
Fix drag and drop link to composebox (#12055)
-rw-r--r-- | app/javascript/mastodon/features/ui/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/ui/index.js b/app/javascript/mastodon/features/ui/index.js index f5e48ed31..791ff9a2e 100644 --- a/app/javascript/mastodon/features/ui/index.js +++ b/app/javascript/mastodon/features/ui/index.js @@ -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 = () => { |