fix: fix rgl container crash problem, remove invalid rgl.drop event

This commit is contained in:
liujuping 2022-11-25 16:47:13 +08:00 committed by LeoYuan 袁力皓
parent 948660b54f
commit c3984e5263

View File

@ -408,7 +408,7 @@ export class Dragon {
if (e) {
const { isRGL, rglNode } = getRGL(e);
/* istanbul ignore next */
if (isRGL && this._canDrop) {
if (isRGL && this._canDrop && this._dragging) {
const tarNode = dragObject.nodes[0];
if (rglNode.id !== tarNode.id) {
// 避免死循环