Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom filterFn breaks the tooltip #201

Closed
1 task done
qwelol opened this issue Nov 16, 2022 · 1 comment
Closed
1 task done

Custom filterFn breaks the tooltip #201

qwelol opened this issue Nov 16, 2022 · 1 comment

Comments

@qwelol
Copy link

qwelol commented Nov 16, 2022

material-react-table version

v1.3.9

react & react-dom versions

v17.0.2

Describe the bug and the steps to reproduce it

If prop filterFn is function then filterType value in tooltip is undefined.

Minimal, Reproducible Example - (Optional, but Recommended)

This can be checked with an example from storybook:
https://www.material-react-table.dev/?path=/docs/features-filtering-examples--custom-filter-fns#custom-filter-fns

Screenshots or Videos (Optional)

filter

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

No, because I don't 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.
@KevinVandy
Copy link
Owner

You just need to provide a localization entry with the name of your custom filter like in the example in the official docs

https://www.material-react-table.com/docs/guides/column-filtering#customize-filter-modes-source-code

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants