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

Display label in autocomplete filter text input, not value #972

Merged

Conversation

dmitry-simple-it
Copy link
Contributor

@dmitry-simple-it dmitry-simple-it commented Feb 4, 2024

Added autocompleteValue useState variable to store full newValue and show value in getOptionLabel not value if dropdownOptions initially has array ob objects structure: [{value, label}]

Fix for #971

Copy link

vercel bot commented Feb 4, 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 4, 2024 0:04am
material-react-table-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2024 0:04am

…show value in getOptionLabel not value if dropdownOptions initially has array ob objects structure: [{value, label}]
@dmitry-simple-it dmitry-simple-it force-pushed the fix/autocomplete-filtering-selection branch from 45ae034 to 2b84641 Compare February 4, 2024 11:54
@dmitry-simple-it dmitry-simple-it changed the title removed getOptionLabel because option is value sometimes and in that … Display label in autocomplete filter text input, not value Feb 4, 2024
@KevinVandy KevinVandy merged commit 99ff761 into KevinVandy:v2 Feb 5, 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