Can not stop propagation or prevent default on circle marker clicks. @click.stop and/or @click.prevent throw errors. Original event seems to be in an object called $event.originalEvent but calling preventDefault() and stopPropagation() doesn't have any effect on it.
https://jsfiddle.net/gulyamani/541bpcja/1/
Open console and click circle markers.
Only seeing 'marker click' on console.
Seeing both 'marker click' and 'map click'
This is a nice catch @maratumba I think we need to modify how we handle events to achieve this
Hi
@DonNicoJs any reason you use DomEvent.on ti attach listeners to Leaflet object ?
As these are 'Interactive layer' we could ( and I think should, in order to solve this issue) use on from Evented class.
I noticed this while attaching different handler on Marker, Polyline and Map. I always have both handlers called (as in an event propagation) with Vue2Leaflet, and never when I a attach directly to mapObject
I would recommend to swap
DomEvent.on(this.mapObject, this.$listeners);
by
this.mapObject.on(this.$listeners);
Most helpful comment
This is a nice catch @maratumba I think we need to modify how we handle events to achieve this