Skip to content

Dynamically changing filterVariant from default to range and back hides all rows #1521

Description

@denexapp

material-react-table version

v3.2.1

react & react-dom versions

v19.2.6

Describe the bug and the steps to reproduce it

If I change filterVariant to range and back while column filters are open, all rows disappear. A comma appears in the filter row.

Steps to reproduce:

  • Show column filters
  • Change filterVariant to range
  • Change filterVaraint back to default (unset)

Expected behavior:

  • None

Actual behavior:

  • All rows dissapear, a comma appear in the filter inputs

Note:
I've been trying to befriend nuqs with material-react-table to put filter state into url when I encountered this behavior

Minimal, Reproducible Example - (Optional, but Recommended)

Bolt: https://vitejs-vite-duplicat-1lnn.bolt.host
Repo: https://github.com/denexapp/material-react-table-filters-bug

Screenshots or Videos (Optional)

No response

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

No, because I do not know how

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