Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
T1l3 opened this issue Jun 23, 2024 · 0 comments

Comments

@T1l3
Copy link

T1l3 commented Jun 23, 2024

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.

  • hover over items 1, 2, 3, and 4 to view their tooltips
  • click the reorder button
  • hover over item 4 again; it shows the content of item 1's tooltip.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant