1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 10:22:46 +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

@@ -491,7 +491,7 @@ class DirentListItem extends React.Component {
};
onItemDragStart = (e) => {
if (Utils.isIEBrower() || !this.state.canDrag) {
if (Utils.isIEBrowser() || !this.state.canDrag) {
return false;
}
e.dataTransfer.effectAllowed = 'move';
@@ -521,7 +521,7 @@ class DirentListItem extends React.Component {
};
onItemDragEnter = (e) => {
if (Utils.isIEBrower() || !this.state.canDrag) {
if (Utils.isIEBrowser() || !this.state.canDrag) {
return false;
}
if (this.props.dirent.type === 'dir') {
@@ -531,7 +531,7 @@ class DirentListItem extends React.Component {
};
onItemDragOver = (e) => {
if (Utils.isIEBrower() || !this.state.canDrag) {
if (Utils.isIEBrowser() || !this.state.canDrag) {
return false;
}
if (e.dataTransfer.dropEffect === 'copy') {
@@ -542,7 +542,7 @@ class DirentListItem extends React.Component {
};
onItemDragLeave = (e) => {
if (Utils.isIEBrower() || !this.state.canDrag) {
if (Utils.isIEBrowser() || !this.state.canDrag) {
return false;
}
@@ -553,7 +553,7 @@ class DirentListItem extends React.Component {
};
onItemDragDrop = (e) => {
if (Utils.isIEBrower() || !this.state.canDrag) {
if (Utils.isIEBrowser() || !this.state.canDrag) {
return false;
}
this.setState({ isDropTipshow: false });