From bfb93a13e04e7d750ffbe4c343e7408915aab81a Mon Sep 17 00:00:00 2001 From: jian Date: Tue, 12 Dec 2023 00:15:51 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-16950=20fix:=20options=E4=B8=AD=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E4=B8=8D=E4=BC=9A=E8=A2=AB=E9=87=8A=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/core/4.widget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/fineui/src/core/4.widget.js b/packages/fineui/src/core/4.widget.js index c1fb3bdeb..8ea3ee457 100644 --- a/packages/fineui/src/core/4.widget.js +++ b/packages/fineui/src/core/4.widget.js @@ -874,7 +874,7 @@ export class Widget extends OB { this._assetMounted(); this.__destroy(); this.fireEvent(Events.UNMOUNT); - this._purgeRef(); // 子组件unmount ref置为null了,父组件拿不到ref,导致报错 + // this._purgeRef(); // 子组件unmount ref置为null了,父组件拿不到ref,导致报错 this.purgeListeners(); } @@ -959,6 +959,7 @@ export class Widget extends OB { this.fireEvent(Events.DESTROY); this._purgeRef(); this.purgeListeners(); + this.options = {}; } }