We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87415ab commit 3032712Copy full SHA for 3032712
packages/pluggableWidgets/maps-web/src/components/LeafletMap.tsx
@@ -102,7 +102,7 @@ export function LeafletMap(props: LeafletProps): ReactElement {
102
}
103
interactive={!!marker.title || !!marker.onClick}
104
key={`marker_${marker.id ?? marker.latitude + "_" + marker.longitude}`}
105
- eventHandlers={marker.title ? undefined : { click: marker.onClick }}
+ eventHandlers={!marker.title && marker.onClick ? { click: marker.onClick } : undefined}
106
position={{ lat: marker.latitude, lng: marker.longitude }}
107
title={marker.title}
108
>
0 commit comments