Skip to content

Dynamic Columns Disappear When a Filter or Search Provides No Results #1419

@Daniel-Choe

Description

@Daniel-Choe

material-react-table version

v3.0.1

react & react-dom versions

18.2.0

Describe the bug and the steps to reproduce it

If you are using dynamic columns to render the table, any filtering or searching that would produce no (zero) results will make the columns disappear.

https://www.material-react-table.com/docs/examples/dynamic-columns

In the dynamic columns example page, filter on any column that would produce zero results, and the columns will disappear. There is no way to change the filter values, or even see the columns headers without refreshing the page.

Minimal, Reproducible Example - (Optional, but Recommended)

https://www.material-react-table.com/docs/examples/dynamic-columns

In the dynamic columns example page, filter on First Name column by adding the value "xx". No results found will appear, and column headers and filters will disappear.

Screenshots or Videos (Optional)

No response

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

None

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.

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