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

Persistent Tooltip in MenuBar #5614

Closed
guttormvik2 opened this issue Oct 23, 2023 · 3 comments · Fixed by vaadin/web-components#7322
Closed

Persistent Tooltip in MenuBar #5614

guttormvik2 opened this issue Oct 23, 2023 · 3 comments · Fixed by vaadin/web-components#7322

Comments

@guttormvik2
Copy link

Describe the bug

Given a MenuBar with one MenuItem with a tooltip:

  • Hovering over the MenuItem gives the tooltip
  • Moving mouse out of the menuItem to the left, right, or up, removes the tooltip
  • Moving the mouse down into the tooltip keeps the tooltip open
  • Moving the mouse further down, out of the tooltip text does not close the tooltip
  • Tooltip now stays persistent until I move mouse into the menuItem again and then out

Expected-behavior

Tooltip should disappear when mouse is moved out of the tooltip again

Reproduction

public PersistentTooltipView() {
    
    var toolbar = new HorizontalLayout();
    var main = new VerticalLayout();
    main.setSizeFull();
    add(toolbar, main);
    
    var menuBar = new MenuBar();
    toolbar.add(menuBar);
    
    menuBar.addItem(VaadinIcon.COG.create(), "This tooltip doesn't disappear when I move mouse down through it and out the other side");
    
}

System Info

Windows 10, Vaadin 24.2, FireFox 118.0.2, Chrome 118.0.5993.89

@guttormvik2 guttormvik2 added the bug Something isn't working label Oct 23, 2023
@ZheSun88 ZheSun88 transferred this issue from vaadin/platform Oct 23, 2023
@ZheSun88
Copy link
Contributor

Thanks for the ticket, we will handle this as soon as possible .

@paodb
Copy link
Contributor

paodb commented Apr 9, 2024

Issue is also present in Vaadin 23.3.33, tooltip doesn't disappear in some cases as seen in attached video taken from Vaadin23 documentation example

tooltip_test

Doing the same test in Vaadin 24 documentation example shows same behavior.

Seems that using Tooltip.forComponent(item).withText("Some tooltip") to define the tooltip prevents this behavior.

@yuriy-fix
Copy link
Contributor

This issue has been added to the backlog priority queue for further investigation.

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

Successfully merging a pull request may close this issue.

5 participants