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

filterSelectOptions filter tooltip displays label #997

Merged

Conversation

loughlinclaus3
Copy link
Contributor

@loughlinclaus3 loughlinclaus3 commented Feb 21, 2024

Finally got around to making a PR for this idea and this issue.

The goal of this PR is for the select and multi-select filterVariants that have a defined filterSelectOptions to have the filterTooltip to display the filterSelectOption's label instead of value.

It's been over 4 years since I last worked with typescript, so feel free to correct any mistakes I've made. Looking at the PR now, you could probably combine the .map().reduce() on line 44 into a single .reduce(), but it should be fine regardless.

Copy link

vercel bot commented Feb 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
material-react-table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2024 8:58pm
material-react-table-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2024 8:58pm

@KevinVandy KevinVandy merged commit b7841f1 into KevinVandy:v2 Feb 24, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants