Vue2Leaflet
Vue2Leaflet copied to clipboard
Permanent tooltips are not reactive
Description
Tooltips set with 'permanent' option aren't reactive. In my application, the refresh of my data doesn't update the tooltips when they are set with 'permanent: true'. For example, I try to update the option object when data.isActive is updated (I use Vuex for reactivity and I loop through my data to show the tooltips) But Leaflet doesn't update the tooltip.
Versions
- Leaflet: v1.5.1
- Vue: v2.6.10
- Vue2Leaflet: v2.2.1
@yohannlegrand Sorry for the very slow reply, I will investigate this
Confirming this bug.
Confirming too: updating marker coordinates from Vue moves marker, but not tooltip. When dragging marker with mouse/tap, everything's fine.
Are there any news on this topic @DonNicoJs ? It would be very handy if the tooltip options could be updated reactively
Discovered this today as well. Didn't realize it was because of the permanent option til I found this post.
Edit: I removed the permanent option, but tooltips are not being removed when a v-if condition is false
I submitted PR #718