Skip to content

Checkboxes in Blazor filters disappear when updating options in .NET MAUI Blazor #61893

@JuanHSlig

Description

@JuanHSlig

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issueStatus: No Recent Activityarea-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions