mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 15:38:15 +00:00
repair firefox-ie upload bug (#3967)
* repair firefox-ie upload bug * repair code bug
This commit is contained in:
@@ -403,6 +403,9 @@ class DirentListItem extends React.Component {
|
|||||||
if (Utils.isIEBrower()) {
|
if (Utils.isIEBrower()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (e.dataTransfer.dropEffect === 'copy') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.dataTransfer.dropEffect = 'move';
|
e.dataTransfer.dropEffect = 'move';
|
||||||
}
|
}
|
||||||
|
@@ -580,6 +580,9 @@ class DirentListView extends React.Component {
|
|||||||
if (Utils.isIEBrower()) {
|
if (Utils.isIEBrower()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (e.dataTransfer.dropEffect === 'copy') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.dataTransfer.dropEffect = 'move';
|
e.dataTransfer.dropEffect = 'move';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user