Fix missing event param in isTargetClicked

Otherwise the global window.event property is used, and it might not
correspond to the value we want.
pull/2206/head
Aline Chetta 2022-02-23 21:21:55 +01:00
parent 0e1712ebbe
commit de3cd8b416
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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() {