Skip to content

Commit

Permalink
Drawer: fix append to body (ElemeFE#21264)
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 authored and abigail-0111 committed Dec 21, 2021
1 parent 79e6064 commit 536e3ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/drawer/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ export default {
if (this.visible) {
this.rendered = true;
this.open();
if (this.appendToBody) {
document.body.appendChild(this.$el);
}
}
},
destroyed() {
Expand Down

0 comments on commit 536e3ee

Please sign in to comment.