1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

repair firefox-ie upload bug (#3967)

* repair firefox-ie upload bug

* repair code bug
This commit is contained in:
杨顺强
2019-08-09 17:04:48 +08:00
committed by Daniel Pan
parent 11152071c6
commit 7e9459a608
2 changed files with 6 additions and 0 deletions

View File

@@ -403,6 +403,9 @@ class DirentListItem extends React.Component {
if (Utils.isIEBrower()) {
return false;
}
if (e.dataTransfer.dropEffect === 'copy') {
return;
}
e.preventDefault();
e.dataTransfer.dropEffect = 'move';
}

View File

@@ -580,6 +580,9 @@ class DirentListView extends React.Component {
if (Utils.isIEBrower()) {
return false;
}
if (e.dataTransfer.dropEffect === 'copy') {
return;
}
e.preventDefault();
e.dataTransfer.dropEffect = 'move';
}