material-react-table icon indicating copy to clipboard operation
material-react-table copied to clipboard

Multi-select filters are broken in 3.2.1

Open johnsunxu opened this issue 4 months ago • 0 comments

material-react-table version

3.2.1

react & react-dom versions

18.3.1

Describe the bug and the steps to reproduce it

The table does not properly update the filter model with multiselect in 3.2.1 and 3.1.0. However, it works in 3.0.1.

I think it's trying to set a single value instead of an array and it turns into an empty array in line 537 of MRT_FilterTextField.tsx which is why it didn't show any options selected

Minimal, Reproducible Example - (Optional, but Recommended)

Might create an example later

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

Yes, I think I know how to fix it and will discuss it in the comments of this issue

Terms

  • [x] I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

johnsunxu avatar Oct 24 '25 21:10 johnsunxu