Skip to content

Commit

Permalink
Bugfix/remove poppers from body (#20)
Browse files Browse the repository at this point in the history
* remove panel el from body
* bump v
  • Loading branch information
cheesytim authored Dec 17, 2020
1 parent 9c27711 commit df476a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qvant/qui",
"version": "1.0.9",
"version": "1.0.10",
"private": false,
"description": "A Vue.js Design system for Web.",
"author": {
Expand Down Expand Up @@ -64,7 +64,7 @@
"vue-loader": "^15.9.3",
"vue-template-compiler": "^2.6.11"
},
"_id": "@qvant/[email protected].9",
"_id": "@qvant/[email protected].10",
"bugs": {
"url": "https://github.com/Qvant-lab/qui/issues"
},
Expand Down
5 changes: 5 additions & 0 deletions src/qComponents/QDatePicker/src/QDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,11 @@ export default {
this.popper.destroy();
this.popper = null;
}
const dropdown = this.$refs?.panel?.$el;
if (dropdown?.parentNode === document.body) {
document.body.removeChild(dropdown);
}
},
focus() {
Expand Down
5 changes: 5 additions & 0 deletions src/qComponents/QTimePicker/src/QTimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ export default {
this.popper.destroy();
this.popper = null;
}
const dropdown = this.$refs?.panel?.$el;
if (dropdown?.parentNode === document.body) {
document.body.removeChild(dropdown);
}
},
showPopper() {
Expand Down

0 comments on commit df476a8

Please sign in to comment.