mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
Drag and drop multiple files
This commit is contained in:
@@ -577,6 +577,10 @@ class DirentListView extends React.Component {
|
||||
let {nodeDirent, nodeParentPath, nodeRootPath} = dragStartItemData;
|
||||
|
||||
if (e.target.className === 'table-container table-drop-active') {
|
||||
if (Array.isArray(dragStartItemData)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (nodeRootPath === this.props.path || nodeParentPath === this.props.path) {
|
||||
return;
|
||||
}
|
||||
@@ -664,6 +668,7 @@ class DirentListView extends React.Component {
|
||||
onFileTagChanged={this.props.onFileTagChanged}
|
||||
getDirentItemMenuList={this.getDirentItemMenuList}
|
||||
showDirentDetail={this.props.showDirentDetail}
|
||||
onItemsMove={this.props.onItemsMove}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
|
Reference in New Issue
Block a user