Skip to content

Commit a53ebca

Browse files
committed
fix: drawer throw error when destroy #2254
1 parent be8db72 commit a53ebca

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

components/vc-drawer/src/Drawer.js

-12
Original file line numberDiff line numberDiff line change
@@ -135,21 +135,9 @@ const Drawer = {
135135
this.setLevelDomTransform(false, true);
136136
}
137137
document.body.style.overflow = '';
138-
// 拦不住。。直接删除;
139-
if (this.getSelfContainer) {
140-
this.container.parentNode.removeChild(this.container);
141-
}
142138
}
143139
this.sFirstEnter = false;
144140
clearTimeout(this.timeout);
145-
// 需要 didmount 后也会渲染,直接 unmount 将不会渲染,加上判断.
146-
if (this.renderComponent) {
147-
this.renderComponent({
148-
afterClose: this.removeContainer,
149-
onClose() {},
150-
visible: false,
151-
});
152-
}
153141
},
154142
methods: {
155143
onKeyDown(e) {

0 commit comments

Comments
 (0)