fix: drawer throw error when use v-if #2254

pull/2284/head
tangjinzhou 2020-05-17 22:30:16 +08:00
parent ca36ffdb42
commit 02f6fda430
2 changed files with 2 additions and 3 deletions

@ -1 +1 @@
Subproject commit 6213d13ef5f287b16a05ff5509b444a662570944 Subproject commit 7da5429bd5556f6a87c065f6675b963e45f7a83b

View File

@ -28,9 +28,8 @@ export default {
this._container = this.$props.getContainer(); this._container = this.$props.getContainer();
this.$forceUpdate(); this.$forceUpdate();
}, },
removeContainer() { removeContainer() {
if (this._container) { if (this._container && this._container.parentNode) {
this._container.parentNode.removeChild(this._container); this._container.parentNode.removeChild(this._container);
} }
}, },