From 1f702673435c55053affe645381a7c599b6b7a5d Mon Sep 17 00:00:00 2001 From: dailer Date: Tue, 13 Jul 2021 16:15:14 +0800 Subject: [PATCH] =?UTF-8?q?DEC-19639=20fix:=20=E4=BF=AE=E5=A4=8Ddisabled?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/4.widget.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/4.widget.js b/src/core/4.widget.js index b885100ff..447aa9c75 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -300,10 +300,8 @@ this._isMounted = true; for (var key in this._children) { var child = this._children[key]; - if (layer === 0) { - !self.isEnabled() && child._setEnable(false); - !self.isValid() && child._setValid(false); - } + !self.isEnabled() && child._setEnable(false); + !self.isValid() && child._setValid(false); child._mount && child._mount(deep ? force : false, deep, lifeHook, predicate, layer + 1); } this._mountChildren && this._mountChildren();