Skip to content

Fix wishlist filter dropdown not applying filter on change#57

Merged
mitch-b merged 1 commit into
mainfrom
fix/wishlist-filter-dropdown
Apr 4, 2026
Merged

Fix wishlist filter dropdown not applying filter on change#57
mitch-b merged 1 commit into
mainfrom
fix/wishlist-filter-dropdown

Conversation

@mitch-b

@mitch-b mitch-b commented Apr 4, 2026

Copy link
Copy Markdown
Owner

Problem

The filter dropdown on the Wishlists page (/wishlists) had no effect when changed. Selecting "Collaborative Only" or "Private Only" did not update the displayed wishlists.

Root cause: The filterBy select element used @bind="filterBy" without a @bind:after callback, so ApplyFiltersAndSort() was never called when the user changed the filter. The adjacent sort dropdown already uses this pattern correctly with @bind:after="HandleSort".

Fix

Added @bind:after="HandleSearch" to the filterBy select, mirroring the existing pattern on the sort dropdown.

- <select class="form-select" style="width: auto" @bind="filterBy">
+ <select class="form-select" style="width: auto" @bind="filterBy" @bind:after="HandleSearch">

Files changed

  • src/OpenWish.Web.Client/Components/Pages/Wishlists/Index.razor

The filterBy select was missing @Bind:after="HandleSearch", so changing
the filter type (Collaborative Only, Private Only) had no visible effect —
ApplyFiltersAndSort() was never called. This mirrors the existing pattern
already used on the sortBy dropdown.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mitch-b
mitch-b merged commit cc508ad into main Apr 4, 2026
1 check passed
@mitch-b
mitch-b deleted the fix/wishlist-filter-dropdown branch April 4, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant