From de3cd8b416efe95ff201caf970a60a669946bbc8 Mon Sep 17 00:00:00 2001 From: Aline Chetta Date: Wed, 23 Feb 2022 21:21:55 +0100 Subject: [PATCH] Fix missing event param in isTargetClicked Otherwise the global window.event property is used, and it might not correspond to the value we want. --- src/components/confirmpopup/ConfirmPopup.vue | 2 +- src/components/menu/Menu.vue | 2 +- src/components/tieredmenu/TieredMenu.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/confirmpopup/ConfirmPopup.vue b/src/components/confirmpopup/ConfirmPopup.vue index 0ea94e73a..43422d6a6 100644 --- a/src/components/confirmpopup/ConfirmPopup.vue +++ b/src/components/confirmpopup/ConfirmPopup.vue @@ -176,7 +176,7 @@ export default { this.resizeListener = null; } }, - isTargetClicked() { + isTargetClicked(event) { return this.target && (this.target === event.target || this.target.contains(event.target)); }, containerRef(el) { diff --git a/src/components/menu/Menu.vue b/src/components/menu/Menu.vue index fd8b8d5fc..6d6c2744c 100755 --- a/src/components/menu/Menu.vue +++ b/src/components/menu/Menu.vue @@ -188,7 +188,7 @@ export default { this.resizeListener = null; } }, - isTargetClicked() { + isTargetClicked(event) { return this.target && (this.target === event.target || this.target.contains(event.target)); }, visible(item) { diff --git a/src/components/tieredmenu/TieredMenu.vue b/src/components/tieredmenu/TieredMenu.vue index 274d63004..73d25b606 100755 --- a/src/components/tieredmenu/TieredMenu.vue +++ b/src/components/tieredmenu/TieredMenu.vue @@ -160,7 +160,7 @@ export default { this.resizeListener = null; } }, - isTargetClicked() { + isTargetClicked(event) { return this.target && (this.target === event.target || this.target.contains(event.target)); }, onLeafClick() {