提交 68fa8e78 编写于 作者: I isidor

fixes #66477

上级 64e95a88
......@@ -453,6 +453,11 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
const items = (data as ElementsDragAndDropData<ExplorerItem>).elements;
if (!target) {
// Droping onto the empty area. Do not accept if items dragged are already children of the root
if (items.every(i => i.parent.isRoot)) {
return false;
}
return { accept: true, bubble: TreeDragOverBubble.Down, autoExpand: false };
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册