提交 79818ff2 编写于 作者: I isidor

accept drop on root

上级 93a64072
......@@ -453,11 +453,7 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
const items = (data as ElementsDragAndDropData<ExplorerItem>).elements;
if (!target) {
if (items[0].isRoot) {
return { accept: true, bubble: TreeDragOverBubble.Down, autoExpand: false };
}
return false;
return { accept: true, bubble: TreeDragOverBubble.Down, autoExpand: false };
}
if (!Array.isArray(items)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册