提交 1f7036c6 编写于 作者: R RubaXa

#1143: + additional parent check

上级 1e79040e
......@@ -643,8 +643,10 @@
// #1143: IFrame support workaround
_nextTick(function () {
rootEl.insertBefore(cloneEl, dragEl);
_dispatchEvent(_this, rootEl, 'clone', dragEl);
if (dragEl && (dragEl.parentNode === rootEl)) {
rootEl.insertBefore(cloneEl, dragEl);
_dispatchEvent(_this, rootEl, 'clone', dragEl);
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册