diff --git a/frontend/src/components/dirent-list-view/dirent-list-item.js b/frontend/src/components/dirent-list-view/dirent-list-item.js index ae39cab9e4..59338ef9d8 100644 --- a/frontend/src/components/dirent-list-view/dirent-list-item.js +++ b/frontend/src/components/dirent-list-view/dirent-list-item.js @@ -346,7 +346,7 @@ class DirentListItem extends React.Component { } onItemDragStart = (e) => { - if (Utils.isIEBrower()) { // is ie <= ie11 not include edage + if (Utils.isIEBrower()) { return false; } let nodeRootPath = ''; @@ -362,7 +362,7 @@ class DirentListItem extends React.Component { } onItemDragEnter = () => { - if (Utils.isIEBrower()) { // is ie <= ie11 not include edage + if (Utils.isIEBrower()) { return false; } if (this.props.dirent.type === 'dir') { @@ -371,7 +371,7 @@ class DirentListItem extends React.Component { } onItemDragOver = (e) => { - if (Utils.isIEBrower()) { // is ie <= ie11 not include edage + if (Utils.isIEBrower()) { return false; } e.preventDefault(); @@ -379,14 +379,14 @@ class DirentListItem extends React.Component { } onItemDragLeave = () => { - if (Utils.isIEBrower()) { // is ie <= ie11 not include edage + if (Utils.isIEBrower()) { return false; } this.setState({isDropTipshow: false}); } onItemDragDrop = (e) => { - if (Utils.isIEBrower()) { // is ie <= ie11 not include edage + if (Utils.isIEBrower()) { return false; } this.setState({isDropTipshow: false}); diff --git a/frontend/src/utils/utils.js b/frontend/src/utils/utils.js index d25ef82ab3..9a80b81266 100644 --- a/frontend/src/utils/utils.js +++ b/frontend/src/utils/utils.js @@ -229,7 +229,7 @@ export const Utils = { navigator.userAgent.indexOf('Chrome') > -1; }, - isIEBrower: function() { + isIEBrower: function() { // is ie <= ie11 not include Edge var userAgent = navigator.userAgent; var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;