You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
@alessandrojcm
So what the default mode should multi-select use? contains? Not fuzzy I think.
But what does contains mean?
Without setting any filter mode,
if I have a column to be a string separated by ",", and selected options "A" and "B" within the filter, does this mean:
"A" and "B": return rows with "A,B[,...]"
"A" or "B": return rows with "A[,...]" or "B[,...]" or "A,B[,...]"
(BTW I'm using custom filters, and my API server does the filtering, and currently I'm using 2 as my API logic)
And does settings the filter mode to contains make any difference to that logic?
To summarize,
we should add contains to the columnFilterModeOptions for multi-select, and set it as default.
And by contains, we could apply any logic we prefer.
Is that right?
mantine-react-table version
v2
react & react-dom versions
v18
Describe the bug and the steps to reproduce it
mantine-react-table/packages/mantine-react-table/src/components/inputs/MRT_FilterTextInput.tsx
Line 214 in 56b022a
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
The text was updated successfully, but these errors were encountered: