spectrum-web-components icon indicating copy to clipboard operation
spectrum-web-components copied to clipboard

[Bug]: When trying to render the common sp-tooltip (in sp-overlay) for multiple button. If I try to move quickly between buttons, I notice that although tooltip content is changing but location of tooltip is not changing.

Open Vishesh-G opened this issue 1 year ago • 2 comments
trafficstars

Code of conduct

  • [X] I agree to follow this project's code of conduct.

Impacted component(s)

sp-overlay, sp-tooltip

Expected behavior

tooltip should change its location

Actual behavior

tooltip updating its content but not changing its location

Screenshots

No response

What browsers are you seeing the problem in?

No response

How can we reproduce this issue?

  1. Go to '...'
  2. Click on '....'
  3. Scroll to '....'
  4. Check console
  5. See error

Sample code that illustrates the problem

https://studio.webcomponents.dev/edit/JirOxY51y0SAKaQLtLSM/src/index.ts?p=stories

Logs taken while reproducing problem

No response

Vishesh-G avatar Feb 14 '24 16:02 Vishesh-G

There's a decent amount of nastiness around making this something that is possible with the current API of this element. Could you share some of your goal in taking this path so that we could combine possible alternatives with explicit fixes in our research here?

Westbrook avatar Mar 05 '24 00:03 Westbrook

I need to display tooltip for more than 50 cards, so to have single tooltip, I am using the same logic that I have used in the sample code. But cards being very close, I am facing this issue.

Vishesh-G avatar Mar 05 '24 10:03 Vishesh-G