Browse Source

KERNEL-16950 fix: options中对象不会被释放

research/test
jian 11 months ago
parent
commit
bfb93a13e0
  1. 3
      packages/fineui/src/core/4.widget.js

3
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 = {};
}
}

Loading…
Cancel
Save