Skip to content

Multi-select filters are broken in 3.2.1 #1480

Description

@johnsunxu

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

  • 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions