From 3f7c656354c510989e6caea19e3f66bd58744485 Mon Sep 17 00:00:00 2001 From: dailer Date: Mon, 8 Nov 2021 14:02:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=20fix:=20nextSibling=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/wrapper/layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/wrapper/layout.js b/src/core/wrapper/layout.js index bc48cd3f4..04ffa4fa4 100644 --- a/src/core/wrapper/layout.js +++ b/src/core/wrapper/layout.js @@ -241,7 +241,7 @@ BI.Layout = BI.inherit(BI.Widget, { // 需要有个地方临时存一下新建的组件,否则如果直接使用newIndex的话,newIndex位置的元素可能会被用到 this._children[this._getChildName(newIndex) + "-temp"] = w; var nextSibling = del.element.next(); - if (nextSibling) { + if (nextSibling.length > 0) { BI.Widget._renderEngine.createElement(nextSibling).before(w.element); } else { w.element.appendTo(this._getWrapper());