-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
When manipulating filters (e.g., select elements with checkboxes) in a Blazor application—including tests in .NET MAUI Blazor—it has been observed that dynamically updating the options causes the currently selected value to disappear from the dropdown. This occurs even when forcing a UI refresh with StateHasChanged().
Expected Behavior
Expected behavior:
Filters should update dependently without visually removing the selected option.
Actual behavior:
The previously selected option disappears from the list after applying another filter, suggesting an issue with visual state updates.
Impact:
This affects the usability of the filtering functionality, as the user cannot see the applied filter, even though it is being used internally.
Verification steps:
I have replicated this behavior in both a standard Blazor application and .NET MAUI Blazor.
Steps To Reproduce
- Select a project filter that reduces the list of available cities.
- Then, select a city filter.
- Observe that the previously selected project filter visually disappears, even though it remains internally selected.
Exceptions (if any)
Impact:
This affects the usability of the filtering functionality, as the user cannot see the applied filter, even though it is being used internally.
Verification steps:
I have replicated this behavior in both a standard Blazor application and .NET MAUI Blazor.
Request:
Could you investigate whether this is a bug in Blazor’s rendering engine and, if confirmed, provide a solution or repair plan?
Thank you for your attention.
.NET Version
- .NET 9 (and .NET MAUI Blazor)
Anything else?
Using the latest stable versions of ASP.NET Core and Blazor.