From 55e3c5a857844abfa6303bf2b93ba2bd9458333f Mon Sep 17 00:00:00 2001 From: newtalk Date: Tue, 12 Apr 2022 19:09:30 +0800 Subject: [PATCH] =?UTF-8?q?unRegisterComponent=20=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=A2=AB=E8=B0=83=E7=94=A8=E5=88=B0FIX=20(#4009)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Form/wrapControl.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/renderers/Form/wrapControl.tsx b/src/renderers/Form/wrapControl.tsx index abc554d60..755c84ff8 100644 --- a/src/renderers/Form/wrapControl.tsx +++ b/src/renderers/Form/wrapControl.tsx @@ -401,10 +401,6 @@ export function wrapControl< this.control = control; const scoped = this.context as IScopedContext; - if (!this.control) { - return; - } - if (control) { scoped.registerComponent(this.control); } else {