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:
@@ -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) {
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user