Browse Source

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

pull/2284/head
tangjinzhou 5 years ago
parent
commit
02f6fda430
  1. 2
      antdv-demo
  2. 3
      components/_util/Portal.js

2
antdv-demo

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

3
components/_util/Portal.js

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

Loading…
Cancel
Save