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

fix: browser spell (#6533)

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-08-12 14:25:37 +08:00
committed by GitHub
parent 177e97bb73
commit f7a7636867
9 changed files with 31 additions and 31 deletions

View File

@@ -108,14 +108,14 @@ class TreeNodeView extends React.Component {
};
onNodeDragStart = (e) => {
if (Utils.isIEBrower() || !this.canDrag) {
if (Utils.isIEBrowser() || !this.canDrag) {
return false;
}
this.props.onNodeDragStart(e, this.props.node);
};
onNodeDragEnter = (e) => {
if (Utils.isIEBrower() || !this.canDrag) {
if (Utils.isIEBrowser() || !this.canDrag) {
return false;
}
if (this.props.node.object.type === 'dir') {
@@ -125,14 +125,14 @@ class TreeNodeView extends React.Component {
};
onNodeDragMove = (e) => {
if (Utils.isIEBrower() || !this.canDrag) {
if (Utils.isIEBrowser() || !this.canDrag) {
return false;
}
this.props.onNodeDragMove(e);
};
onNodeDragLeave = (e) => {
if (Utils.isIEBrower() || !this.canDrag) {
if (Utils.isIEBrowser() || !this.canDrag) {
return false;
}
this.setState({ isNodeDropShow: false });
@@ -140,7 +140,7 @@ class TreeNodeView extends React.Component {
};
onNodeDrop = (e) => {
if (Utils.isIEBrower() || !this.canDrag) {
if (Utils.isIEBrowser() || !this.canDrag) {
return false;
}
e.stopPropagation();

View File

@@ -49,7 +49,7 @@ class TreeView extends React.Component {
};
onNodeDragStart = (e, node) => {
if (Utils.isIEBrower()) {
if (Utils.isIEBrowser()) {
return false;
}
let dragStartNodeData = { nodeDirent: node.object, nodeParentPath: node.parentNode.path, nodeRootPath: node.path };
@@ -60,7 +60,7 @@ class TreeView extends React.Component {
};
onNodeDragEnter = (e, node) => {
if (Utils.isIEBrower() || !this.canDrop) {
if (Utils.isIEBrowser() || !this.canDrop) {
return false;
}
e.persist();
@@ -72,7 +72,7 @@ class TreeView extends React.Component {
};
onNodeDragMove = (e) => {
if (Utils.isIEBrower() || !this.canDrop) {
if (Utils.isIEBrowser() || !this.canDrop) {
return false;
}
e.preventDefault();
@@ -80,7 +80,7 @@ class TreeView extends React.Component {
};
onNodeDragLeave = (e, node) => {
if (Utils.isIEBrower() || !this.canDrop) {
if (Utils.isIEBrowser() || !this.canDrop) {
return false;
}
if (e.target.className === 'tree-view tree tree-view-drop') {
@@ -100,7 +100,7 @@ class TreeView extends React.Component {
};
onNodeDrop = (e, node) => {
if (Utils.isIEBrower() || !this.canDrop) {
if (Utils.isIEBrowser() || !this.canDrop) {
return false;
}
if (e.dataTransfer.files.length) { // uploaded files