From feff93c3a68d4990faed06df74417a472fcb080d Mon Sep 17 00:00:00 2001 From: qiang Date: Tue, 23 Nov 2021 14:48:27 +0800 Subject: [PATCH] fix(h5): map callouttap question/134803 --- src/platforms/h5/view/components/map/map-marker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/h5/view/components/map/map-marker.js b/src/platforms/h5/view/components/map/map-marker.js index 147066460..430395720 100644 --- a/src/platforms/h5/view/components/map/map-marker.js +++ b/src/platforms/h5/view/components/map/map-marker.js @@ -220,7 +220,7 @@ export default { callout.setOption(calloutStyle) } else { callout = marker.callout = new maps.Callout(calloutStyle) - callout.div.onclick = function ($event) { + callout.div.onclick = ($event) => { if (this.id !== '') { this.$parent.$trigger('callouttap', $event, { markerId: this.id -- GitLab