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

[Autocomplete] Fix filtering when value is already selected #22935

Merged
merged 10 commits into from Oct 9, 2020

Conversation

montelius
Copy link
Contributor

Fix #22792.

I've also added three tests, one of which doesn't work correctly (the 'should filter options when new input value matches option' case). Basically, I'm trying to simulate user key input into the textbox, but the key input doesn't seem to change the input text in the textbox. Could I get some help solving this?

@montelius montelius changed the title Issue22792 Autocomplete] Don't display whole options list in Autocomplete when input text is the same as selected value Oct 8, 2020
@montelius montelius changed the title Autocomplete] Don't display whole options list in Autocomplete when input text is the same as selected value [Autocomplete] Don't display whole options list in Autocomplete when input text is the same as selected value Oct 8, 2020
@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module! labels Oct 8, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Oct 8, 2020

Details of bundle changes

Generated by 🚫 dangerJS against b19cc20

@oliviertassinari oliviertassinari changed the title [Autocomplete] Don't display whole options list in Autocomplete when input text is the same as selected value [Autocomplete] Fix filtering when value is already selected Oct 9, 2020
@oliviertassinari
Copy link
Member

@montelius I have pushed forward your initial solution. Thanks for demonstrating a working solution! If you see any issue with the revised approach, please let us know, we can work on a follow up pull request. At least, It seems that this first issue solve the reported problem :)

@montelius
Copy link
Contributor Author

@oliviertassinari I looks great, thanks for taking the time to polish! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Autocomplete] Don't display whole options list in Autocomplete when input text is the same as selected value
3 participants