fix(editor): 不允许拖动的节点不允许被拖入

fix #544
This commit is contained in:
roymondchen 2023-11-01 14:13:15 +08:00
parent 905f34ae24
commit 5021c746fc

View File

@ -65,7 +65,7 @@ export const useDrag = (services: Services | undefined) => {
if (!event.target) return;
const targetEl = getNodeEl(event.target as HTMLElement);
if (!targetEl) return;
if (!targetEl?.draggable) return;
const labelEl = targetEl.children[0];
if (!labelEl) return;