-
-
Notifications
You must be signed in to change notification settings - Fork 92
Closed
Labels
Milestone
Description
Describe the bug
There is an issue when using ButtonType.Link
in context within a Virtualize
component.
<Virtualize Items="Items" Context="item">
<div class="mb-3">
<span class="me-1">@item.Name</span>
<Button Color="ButtonColor.Primary" Type="ButtonType.Link" To="@($"/Test/{item.Id}")">
Edit
</Button>
</div>
</Virtualize>
Notice the corresponding URL on the button right of the images:
It looks like parameter To
does not become updated when the content of the Virtualize
component does change.
Using vanilla HTML works as expected.
<a class="btn btn-primary" href="/Test/@item.Id">Edit</a>
Expected behavior
To parameter should show the corresponding ID
GitHub repo
GitHub repo with minimal code to reproduce the issue.