diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2016-01-08 14:26:16 -0800 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2016-01-12 12:05:41 -0800 |
commit | c39ba354d566e4f70f9b3825e0d62bcdef0ac05d (patch) | |
tree | 3078c75e6452fa2b6cbb6b54c26a09f25364968e /web | |
parent | cc746dda6acbcba3645bafcb368104f78ce1aeae (diff) | |
download | chat-c39ba354d566e4f70f9b3825e0d62bcdef0ac05d.tar.gz chat-c39ba354d566e4f70f9b3825e0d62bcdef0ac05d.tar.bz2 chat-c39ba354d566e4f70f9b3825e0d62bcdef0ac05d.zip |
Fix issue with drag n drop overlay in ie11
Diffstat (limited to 'web')
-rw-r--r-- | web/react/utils/utils.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index 2ddd0e5e3..8c02c2d93 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -1295,5 +1295,9 @@ export function fillArray(value, length) { // Checks if a data transfer contains files not text, folders, etc.. // Slightly modified from http://stackoverflow.com/questions/6848043/how-do-i-detect-a-file-is-being-dragged-rather-than-a-draggable-element-on-my-pa export function isFileTransfer(files) { + if (isBrowserIE()) { + return files.types != null && files.types.contains('Files'); + } + return files.types != null && (files.types.indexOf ? files.types.indexOf('Files') !== -1 : files.types.contains('application/x-moz-file')); } |