🐞 Bug - RadzenLink cannot be clicked in Popup #1706

Open
opened 2026-01-29 17:57:32 +00:00 by claunia · 0 comments
Owner

Originally created by @Jord-Gui on GitHub (Apr 9, 2025).

Describe the bug
When putting a RadzenLink component inside a Popup component, the link does not navigate

To Reproduce

  1. Go to https://blazor.radzen.com/popup?theme=material3
  2. Modify the first example with the below code
@using RadzenBlazorDemos.Models.Northwind
@using Radzen.Blazor.Rendering

<style type="text/css">
    .my-popup {
        display: none;
        position: absolute;
        overflow: hidden;
        height: 360px;
        width: 600px;
        border: var(--rz-panel-border);
        background-color: var(--rz-panel-background-color);
        box-shadow: var(--rz-panel-shadow);
        border-radius: var(--rz-border-radius)
    }
 </style>

<RadzenLink Text="Test" Path="https://www.google.com" target="_blank" />

<div class="rz-p-12 rz-text-align-center">
    <RadzenButton @ref=button Text="Select order" Click="@(args => popup.ToggleAsync(button.Element))" />
</div>

<Popup @ref=popup Lazy=true class="my-popup">
    <RadzenStack Orientation="Orientation.Vertical" Gap="1rem" class="rz-h-100 rz-p-4">
        <RadzenLink Text="Test" Path="https://www.google.com" target="_blank" />
    </RadzenStack>
</Popup>

@code {
    RadzenButton button;
    Popup popup;
    RadzenDataList<Order> dataList;
    IEnumerable<Order> orders;
    int? orderId;
    string searchString = "";
}
  1. Run the code
  2. Click on "Select Order" button
  3. Click on "Test" URL
  4. Bug

Note: If you click on the "Test" URL outside of the popup, it still works

Expected behavior
When you click on a link in a Popup, you navigate to the link

Screenshots

Image

Figure: Link in popup

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Version:

Additional context
Add any other context about the problem here.

Originally created by @Jord-Gui on GitHub (Apr 9, 2025). <!-- 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** When putting a `RadzenLink` component inside a `Popup` component, the link does not navigate **To Reproduce** 1. Go to https://blazor.radzen.com/popup?theme=material3 2. Modify the first example with the below code ``` @using RadzenBlazorDemos.Models.Northwind @using Radzen.Blazor.Rendering <style type="text/css"> .my-popup { display: none; position: absolute; overflow: hidden; height: 360px; width: 600px; border: var(--rz-panel-border); background-color: var(--rz-panel-background-color); box-shadow: var(--rz-panel-shadow); border-radius: var(--rz-border-radius) } </style> <RadzenLink Text="Test" Path="https://www.google.com" target="_blank" /> <div class="rz-p-12 rz-text-align-center"> <RadzenButton @ref=button Text="Select order" Click="@(args => popup.ToggleAsync(button.Element))" /> </div> <Popup @ref=popup Lazy=true class="my-popup"> <RadzenStack Orientation="Orientation.Vertical" Gap="1rem" class="rz-h-100 rz-p-4"> <RadzenLink Text="Test" Path="https://www.google.com" target="_blank" /> </RadzenStack> </Popup> @code { RadzenButton button; Popup popup; RadzenDataList<Order> dataList; IEnumerable<Order> orders; int? orderId; string searchString = ""; } ``` 3. Run the code 4. Click on "Select Order" button 5. Click on "Test" URL 6. Bug Note: If you click on the "Test" URL outside of the popup, it still works **Expected behavior** When you click on a link in a Popup, you navigate to the link **Screenshots** <img width="1626" alt="Image" src="https://github.com/user-attachments/assets/40eb901f-fc63-4d10-a8f5-886260faa920" /> **Figure: Link in popup** **Desktop (please complete the following information):** - OS: MacOS - Browser: Chrome - Version: **Additional context** Add any other context about the problem here.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1706