Skip to content

Commit 02f6fda

Browse files
committed
fix: drawer throw error when use v-if #2254
1 parent ca36ffd commit 02f6fda

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

antdv-demo

components/_util/Portal.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ export default {
2828
this._container = this.$props.getContainer();
2929
this.$forceUpdate();
3030
},
31-
3231
removeContainer() {
33-
if (this._container) {
32+
if (this._container && this._container.parentNode) {
3433
this._container.parentNode.removeChild(this._container);
3534
}
3635
},

0 commit comments

Comments
 (0)