Akryum / floating-vue

💬 Easy tooltips, popovers, dropdown, menus... for Vue
https://floating-vue.starpad.dev/
MIT License
3.26k stars 333 forks source link

Tooltip content loses track when there are multiple instances with async content #1043

Open T1l3 opened 1 month ago

T1l3 commented 1 month ago

Hi, I'm using the v-tooltip directive with asynchronous content in a loop. However, when I reorder the content, the tooltip does not update correctly and retains the content of the tooltip from before the reordering.

This issue occurs when using the arrow function notation for the tooltip content (content: () => 'some text'). It works correctly with static content (content: 'some text').

Steps to Reproduce: Open this simplified example: StackBlitz.

Did I miss something in my implementation or is this a bug in the library?