From 466622f07459a3722227843213132b87eb0f7b5c Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Wed, 11 Dec 2019 14:35:46 +0530 Subject: [PATCH] fix: Refactor Popover to use Portal and Popper.js --- package.json | 5 +- src/App.vue | 1 + src/components/FilterDropdown.vue | 4 +- src/components/Popover.vue | 92 +++++++++++++++++++++++-------- src/main-electron.js | 2 + 5 files changed, 78 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index ed8ffedf..b0312c2d 100644 --- a/package.json +++ b/package.json @@ -63,9 +63,10 @@ "frappe-charts": "^1.2.4", "frappejs": "https://github.com/frappe/frappejs", "nodemailer": "^4.7.0", - "popper.js": "^1.14.4", "vue-color": "^2.7.0", - "vue-toasted": "^1.1.25" + "vue-toasted": "^1.1.25", + "portal-vue": "2.1.6", + "popper.js": "1.16.0" }, "devDependencies": { "electron-builder": "^21.2.0" diff --git a/src/App.vue b/src/App.vue index 6b0b56fa..a77f59c6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,6 +4,7 @@ + diff --git a/src/components/FilterDropdown.vue b/src/components/FilterDropdown.vue index 60cac279..f7bd4b95 100644 --- a/src/components/FilterDropdown.vue +++ b/src/components/FilterDropdown.vue @@ -1,5 +1,5 @@