Skip to content

MRT_FilterTextInput crash when filter type is multi select and clear empty pill. #453

@Toshinaki

Description

@Toshinaki

mantine-react-table version

v2

react & react-dom versions

v18

Describe the bug and the steps to reproduce it

When click the empty pill to clear filter, handleClearEmptyFilterChip just set it to an empty string "".
As we can see in handleClear, you have to check the filter type to determine what value to set when clear.

Minimal, Reproducible Example - (Optional, but Recommended)

The bug is quite clear.
I'll provide a codesandbox link if it's really needed.

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

Labels

V2Issue with MRT V2bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions