Search code examples
javascriptcsstooltipmudblazor

MudTooltip doesn't always disappear when cursor moves away


I am using MudTooltip in a Blazor web app (.NET 8, MudBlazor 6.18.0, Chrome).

When I hover over the menu icon, the tooltip appears.

Right-click the same menu icon and open it in a new tab.

Go back to the original tab and the tooltip is still there, even when not hovering over it. Sometimes, I got the same bug with left-click.

Is this a bug of MudBlazor/MudTooltip? Any way to fix it permanently/temporarily?

enter image description here


Solution

  • In this case the MenuItem / Button gets the focus and doesn't lose it.

    You can set the Property ShowOnFocus to false.