Skip to content

fix: multi-select filter#1506

Open
kristo wants to merge 1 commit intoKevinVandy:v3from
kristo:fix-multiselect-filter
Open

fix: multi-select filter#1506
kristo wants to merge 1 commit intoKevinVandy:v3from
kristo:fix-multiselect-filter

Conversation

@kristo
Copy link

@kristo kristo commented Feb 12, 2026

When using a custom filterFn on a column in MaterialReactTable, the column shows the “filtered” icon even when the filter has been cleared.
This suggests that the table treats an empty filter value as an active filter.

Expected Behaviour
When the filter is cleared (e.g., multiselect returns an empty array), the column should not display the filtered icon, and the tooltip should not appear.

Actual Behaviour
filterValue becomes [] when the filter is cleared.

The table interprets [] as a truthy/active filter.

The filtered icon and tooltip remain visible even though no filter is applied.

Steps to Reproduce

  • Create a column using a custom filterFn.
  • Use a multiselect filter UI for that column.
  • Clear the filter so that filterValue becomes an empty array.
  • Observe that the column still shows the filtered icon and tooltip.

@vercel
Copy link

vercel bot commented Feb 12, 2026

Someone is attempting to deploy a commit to the Kevin Vandy OSS Team on Vercel.

A member of the Team first needs to authorize it.

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