Fixed file upload overlay not showing up on Edge (#3600)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b6c4d84685
Коммит
b339b5c982
@@ -1297,7 +1297,7 @@ export function fillArray(value, length) {
|
|||||||
// Checks if a data transfer contains files not text, folders, etc..
|
// 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
|
// 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) {
|
export function isFileTransfer(files) {
|
||||||
if (isBrowserIE()) {
|
if (isBrowserIE() || isBrowserEdge()) {
|
||||||
return files.types != null && files.types.contains('Files');
|
return files.types != null && files.types.contains('Files');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user