We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e2e1e3 commit 47fc75dCopy full SHA for 47fc75d
packages/extension/src/components/control/index.ts
@@ -76,7 +76,11 @@ const Control: ControlPlugin = {
76
domContainer.appendChild(Control.__tool);
77
},
78
destroy() {
79
- Control.__domContainer?.removeChild(Control.__tool);
+ try {
80
+ Control.__domContainer?.removeChild(Control.__tool);
81
+ } catch (e) {
82
+ console.warn('unexpect destory error', e);
83
+ } // todo: 目前某些情况存在此处报错情况,暂时这样处理。后续改成class写法就没有问题了。
84
85
__getControlTool(): HTMLElement {
86
const NORMAL = 'lf-control-item';
0 commit comments