fix: block disappears when dragged over its parent (#2048)

This commit is contained in:
YANG QIA 2023-06-14 20:11:17 +08:00 committed by GitHub
parent 8b64a559e4
commit 8b9c0fa979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,11 @@ const useDragEnd = (props?: any) => {
return;
}
if (activeSchema.parent === overSchema && insertAdjacent === 'beforeEnd') {
props?.onDragEnd?.(event);
return;
}
const dn = createDesignable({
t,
api,