Tooltip not showing at the first time #468

Closed
opened 2026-01-29 17:37:46 +00:00 by claunia · 2 comments
Owner

Originally created by @eliasdelcid on GitHub (Jul 13, 2022).

I've tried the tooltip component in HTML element and the first time the mouse enters it doesn't show it.
This issue doesn't occur whit a RadzenButton.

You can try it on the radzen demo page, load it, and go directly to hover the html button.

https://blazor.radzen.com/tooltip

image

Originally created by @eliasdelcid on GitHub (Jul 13, 2022). I've tried the tooltip component in HTML element and the first time the mouse enters it doesn't show it. This issue doesn't occur whit a RadzenButton. You can try it on the radzen demo page, load it, and go directly to hover the html button. https://blazor.radzen.com/tooltip ![image](https://user-images.githubusercontent.com/2855937/178618425-9a91cd7e-3b38-4d17-963d-5b5e4f64584b.png)
Author
Owner

@enchev commented on GitHub (Jul 14, 2022):

I'm unable to reproduce this:
image

@enchev commented on GitHub (Jul 14, 2022): I'm unable to reproduce this: ![image](https://user-images.githubusercontent.com/5804953/178914242-d2c21ab1-7709-4ef0-baea-afcea06f9f53.png)
Author
Owner

@cheinrich01833 commented on GitHub (Jul 14, 2022):

I can reproduce it too. The first time you click OR mouseover a button there is no function. Ensure that you do not move the mouse over another botton before you click.

The problem is that in RadzenTooltip.razor the command await InvokeAsync(() => { StateHasChanged(); }); doesn't execute fast enough and so the following if (tooltip != null) results in false. @enchev Please reopen the issue.

@cheinrich01833 commented on GitHub (Jul 14, 2022): I can reproduce it too. The first time you click OR mouseover a button there is no function. Ensure that you do not move the mouse over another botton before you click. The problem is that in RadzenTooltip.razor the command `await InvokeAsync(() => { StateHasChanged(); });` doesn't execute fast enough and so the following ` if (tooltip != null)` results in `false`. @enchev Please reopen the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#468