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

drag-items-move

This commit is contained in:
zxj96
2019-06-18 12:06:24 +08:00
parent f2ba1f3d77
commit 8df70c7bc6
2 changed files with 3 additions and 2 deletions

View File

@@ -429,7 +429,7 @@ class DirentListItem extends React.Component {
return ; return ;
} }
let {nodeDirent, nodeParentPath, nodeRootPath} = dragStartItemData; let { nodeDirent, nodeParentPath, nodeRootPath } = dragStartItemData;
let dropItemData = this.props.dirent; let dropItemData = this.props.dirent;
if (nodeDirent.name === dropItemData.name) { if (nodeDirent.name === dropItemData.name) {

View File

@@ -577,7 +577,8 @@ class DirentListView extends React.Component {
let {nodeDirent, nodeParentPath, nodeRootPath} = dragStartItemData; let {nodeDirent, nodeParentPath, nodeRootPath} = dragStartItemData;
if (e.target.className === 'table-container table-drop-active') { if (e.target.className === 'table-container table-drop-active') {
if (Array.isArray(dragStartItemData)) {
if (Array.isArray(dragStartItemData)) { //selected items
return; return;
} }