fix: block disappears when dragged over its parent (#2048)
This commit is contained in:
parent
8b64a559e4
commit
8b9c0fa979
@ -31,6 +31,11 @@ const useDragEnd = (props?: any) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (activeSchema.parent === overSchema && insertAdjacent === 'beforeEnd') {
|
||||||
|
props?.onDragEnd?.(event);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const dn = createDesignable({
|
const dn = createDesignable({
|
||||||
t,
|
t,
|
||||||
api,
|
api,
|
||||||
|
Loading…
Reference in New Issue
Block a user