1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-13 15:05:30 +00:00

repair code error

This commit is contained in:
shanshuirenjia 2019-06-04 17:33:39 +08:00
parent 3994566819
commit f5df909e36
2 changed files with 6 additions and 6 deletions

View File

@ -346,7 +346,7 @@ class DirentListItem extends React.Component {
} }
onItemDragStart = (e) => { onItemDragStart = (e) => {
if (Utils.isIEBrower()) { // is ie <= ie11 not include edage if (Utils.isIEBrower()) {
return false; return false;
} }
let nodeRootPath = ''; let nodeRootPath = '';
@ -362,7 +362,7 @@ class DirentListItem extends React.Component {
} }
onItemDragEnter = () => { onItemDragEnter = () => {
if (Utils.isIEBrower()) { // is ie <= ie11 not include edage if (Utils.isIEBrower()) {
return false; return false;
} }
if (this.props.dirent.type === 'dir') { if (this.props.dirent.type === 'dir') {
@ -371,7 +371,7 @@ class DirentListItem extends React.Component {
} }
onItemDragOver = (e) => { onItemDragOver = (e) => {
if (Utils.isIEBrower()) { // is ie <= ie11 not include edage if (Utils.isIEBrower()) {
return false; return false;
} }
e.preventDefault(); e.preventDefault();
@ -379,14 +379,14 @@ class DirentListItem extends React.Component {
} }
onItemDragLeave = () => { onItemDragLeave = () => {
if (Utils.isIEBrower()) { // is ie <= ie11 not include edage if (Utils.isIEBrower()) {
return false; return false;
} }
this.setState({isDropTipshow: false}); this.setState({isDropTipshow: false});
} }
onItemDragDrop = (e) => { onItemDragDrop = (e) => {
if (Utils.isIEBrower()) { // is ie <= ie11 not include edage if (Utils.isIEBrower()) {
return false; return false;
} }
this.setState({isDropTipshow: false}); this.setState({isDropTipshow: false});

View File

@ -229,7 +229,7 @@ export const Utils = {
navigator.userAgent.indexOf('Chrome') > -1; navigator.userAgent.indexOf('Chrome') > -1;
}, },
isIEBrower: function() { isIEBrower: function() { // is ie <= ie11 not include Edge
var userAgent = navigator.userAgent; var userAgent = navigator.userAgent;
var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1;
var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1; var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;