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] Multiple tooltips on the same target don't work anymore #7798

Open
sissbruecker opened this issue Sep 12, 2024 · 3 comments
Open
Labels
documentation Improvements or additions to documentation vaadin-tooltip

Comments

@sissbruecker
Copy link
Contributor

Description

The dev page (/dev/tooltip.html) for tooltip uses multiple tooltips on the same target. Currently, hovering over the target flashes all tooltips briefly and then only shows the last one that is defined in the markup. Before, it would show all tooltips at the same time.

Expected outcome

It should show all tooltips as it did before.

Minimal reproducible example

<div id="wrapper">
<div id="target">Save</div>
</div>
<vaadin-tooltip text="BS" position="bottom-start" for="target"></vaadin-tooltip>
<vaadin-tooltip text="B" position="bottom" for="target"></vaadin-tooltip>
<vaadin-tooltip text="BE" position="bottom-end" for="target"></vaadin-tooltip>
<vaadin-tooltip text="ST" position="start-top" for="target"></vaadin-tooltip>
<vaadin-tooltip text="S" position="start" for="target"></vaadin-tooltip>
<vaadin-tooltip text="SB" position="start-bottom" for="target"></vaadin-tooltip>
<vaadin-tooltip text="TS" position="top-start" for="target"></vaadin-tooltip>
<vaadin-tooltip text="T" position="top" for="target"></vaadin-tooltip>
<vaadin-tooltip text="TE" position="top-end" for="target"></vaadin-tooltip>
<vaadin-tooltip text="ET" position="end-top" for="target"></vaadin-tooltip>
<vaadin-tooltip text="E" position="end" for="target"></vaadin-tooltip>
<vaadin-tooltip text="EB" position="end-bottom" for="target"></vaadin-tooltip>

Steps to reproduce

  1. Open the dev page
  2. Hover over target
  3. Observe how all tooltip briefly flash and only the last one remains visible

Environment

Vaadin version(s): 24.5 alpha11

Browsers

No response

@web-padawan
Copy link
Member

I recall it's been broken for a while. IIRC this might be due to the logic that ensures only one tooltip is visible at a time (excluding manual tooltips).

@sissbruecker
Copy link
Contributor Author

Yeah, this isn't really a sensible use case, I just wanted to note it down. We can consider just updating the dev page, or maybe add some feedback for the developer that multiple tooltips on the same target are not supported.

@rolfsmeds rolfsmeds added the documentation Improvements or additions to documentation label Sep 19, 2024
@rolfsmeds
Copy link
Contributor

Labelled this as documentation since we should at least mention somewhere that multiple simultaneous tooltips on the same element are not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation vaadin-tooltip
Projects
None yet
Development

No branches or pull requests

3 participants