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
parent
0e1712ebbe
commit
de3cd8b416
|
@ -176,7 +176,7 @@ export default {
|
||||||
this.resizeListener = null;
|
this.resizeListener = null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isTargetClicked() {
|
isTargetClicked(event) {
|
||||||
return this.target && (this.target === event.target || this.target.contains(event.target));
|
return this.target && (this.target === event.target || this.target.contains(event.target));
|
||||||
},
|
},
|
||||||
containerRef(el) {
|
containerRef(el) {
|
||||||
|
|
|
@ -188,7 +188,7 @@ export default {
|
||||||
this.resizeListener = null;
|
this.resizeListener = null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isTargetClicked() {
|
isTargetClicked(event) {
|
||||||
return this.target && (this.target === event.target || this.target.contains(event.target));
|
return this.target && (this.target === event.target || this.target.contains(event.target));
|
||||||
},
|
},
|
||||||
visible(item) {
|
visible(item) {
|
||||||
|
|
|
@ -160,7 +160,7 @@ export default {
|
||||||
this.resizeListener = null;
|
this.resizeListener = null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isTargetClicked() {
|
isTargetClicked(event) {
|
||||||
return this.target && (this.target === event.target || this.target.contains(event.target));
|
return this.target && (this.target === event.target || this.target.contains(event.target));
|
||||||
},
|
},
|
||||||
onLeafClick() {
|
onLeafClick() {
|
||||||
|
|
Loading…
Reference in New Issue