vue-leaflet/Vue2Leaflet

missing dynamic event handlers

elmatou opened this issue · 1 comments

Hello,
More a feature request than a bug.

Part of the reactivity system of vuejs offers dynamic event handler see : https://vuejs.org/v2/guide/syntax.html#Dynamic-Arguments
this is done with a v-on set on a computed property, or other shorthands.

Would be nice if Vue2Leaflet (or maybe the Vue3 version) supports it. The solution could be to watch the $listeners property and trigger DomEvent.off() & DomEvent.on()

If this is of your interest, I could try and build a PR on this feature.

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.