From 582eae02ffd55f32ce51f274030f29d254a152b7 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 15 Oct 2019 11:22:46 +0300 Subject: [PATCH] Fixed #62 - Menu and OverlayPanel target position miscalculated --- src/components/menu/Menu.vue | 2 +- src/components/overlaypanel/OverlayPanel.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/menu/Menu.vue b/src/components/menu/Menu.vue index be94d6e74..2a1e0db9c 100644 --- a/src/components/menu/Menu.vue +++ b/src/components/menu/Menu.vue @@ -75,7 +75,7 @@ export default { }, show(event) { this.visible = true; - this.target = event.target; + this.target = event.currentTarget; }, hide() { this.visible = false; diff --git a/src/components/overlaypanel/OverlayPanel.vue b/src/components/overlaypanel/OverlayPanel.vue index 5bb3b2702..33e16faf7 100644 --- a/src/components/overlaypanel/OverlayPanel.vue +++ b/src/components/overlaypanel/OverlayPanel.vue @@ -59,7 +59,7 @@ export default { }, show(event) { this.visible = true; - this.target = event.target; + this.target = event.currentTarget; }, hide() { this.visible = false;