MouseEnter event doesn't work on RadzenText #822

Closed
opened 2026-01-29 17:44:54 +00:00 by claunia · 0 comments
Owner

Originally created by @enricobenedos on GitHub (Apr 21, 2023).

Describe the bug
We are not able to get Tooltip component working on RadzenText using the RadzenText MouseEnter event.

To Reproduce
Steps to reproduce the behavior:

  1. Configure Blazor WASM to support Tooltip component using getting started
  2. Copy/Paste this snippet:
<RadzenText TextStyle="TextStyle.Subtitle1" MouseEnter="@(args => ShowTooltip(args,$"This is a tooltip") )">
    <strong>My Text</strong>
</RadzenText>

<RadzenButton TextStyle="TextStyle.Subtitle1" MouseEnter="@(args => ShowTooltip(args,$"This is a tooltip") )">
    The button
</RadzenButton>

@code {
    [Inject]
    public TooltipService TooltipService { get; set; } = default!;

    private void ShowTooltip(ElementReference elementReference, string text)
    {
        Console.WriteLine("Tooltip appeared");

        TooltipService.Open(elementReference, text, new TooltipOptions() { Position = TooltipPosition.Bottom });
    }
}
  1. Pass over button --> tooltip appears
  2. Pass over text --> tooltip doesn't appear

Expected behavior
Tooltip appear below text, but in this case probably the problem is about MouseEnter that isn't fired.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11 22H2
  • Browser Microsoft Edge Version 112.0.1722.48 (Official build) (64-bit)
  • Radzen Blazor 4.10.0

Additional context
Using Blazor WASM.

Originally created by @enricobenedos on GitHub (Apr 21, 2023). <!-- IMPORTANT: Read this first!!! 1. If you own a Radzen Professional or Еnterprise subscription you can report your issue or ask us a question via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise) 2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers. 3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions. 4. Please adhere to the issue template. Specify all the steps required to reproduce the issue or link a project which reproduces it easily (without requiring extra steps such as restoring a database). --> **Describe the bug** We are not able to get `Tooltip` component working on `RadzenText` using the `RadzenText` `MouseEnter` event. **To Reproduce** Steps to reproduce the behavior: 1. Configure Blazor WASM to support Tooltip component using [getting started](https://blazor.radzen.com/get-started) 2. Copy/Paste this snippet: ``` <RadzenText TextStyle="TextStyle.Subtitle1" MouseEnter="@(args => ShowTooltip(args,$"This is a tooltip") )"> <strong>My Text</strong> </RadzenText> <RadzenButton TextStyle="TextStyle.Subtitle1" MouseEnter="@(args => ShowTooltip(args,$"This is a tooltip") )"> The button </RadzenButton> @code { [Inject] public TooltipService TooltipService { get; set; } = default!; private void ShowTooltip(ElementReference elementReference, string text) { Console.WriteLine("Tooltip appeared"); TooltipService.Open(elementReference, text, new TooltipOptions() { Position = TooltipPosition.Bottom }); } } ``` 3. Pass over button --> tooltip appears 4. Pass over text --> tooltip doesn't appear **Expected behavior** Tooltip appear below text, but in this case probably the problem is about `MouseEnter` that isn't fired. **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: Windows 11 `22H2` - Browser Microsoft Edge `Version 112.0.1722.48 (Official build) (64-bit)` - Radzen Blazor `4.10.0` **Additional context** Using Blazor WASM.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#822