Vue2Leaflet icon indicating copy to clipboard operation
Vue2Leaflet copied to clipboard

Permanent tooltips are not reactive

Open yohannlegrand opened this issue 4 years ago • 6 comments

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 avatar Sep 26 '19 09:09 yohannlegrand

@yohannlegrand Sorry for the very slow reply, I will investigate this

DonNicoJs avatar Nov 07 '19 09:11 DonNicoJs

Confirming this bug.

ivopisarovic avatar Nov 25 '19 21:11 ivopisarovic

Confirming too: updating marker coordinates from Vue moves marker, but not tooltip. When dragging marker with mouse/tap, everything's fine.

bkarlson avatar Apr 22 '20 10:04 bkarlson

Are there any news on this topic @DonNicoJs ? It would be very handy if the tooltip options could be updated reactively

darivs avatar Aug 09 '21 15:08 darivs

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

ryanmoore-SM avatar Aug 10 '21 21:08 ryanmoore-SM

I submitted PR #718

kuromoka avatar Aug 11 '22 08:08 kuromoka