-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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] Remove startAfter feature #20551
Comments
@oliviertassinari custom filter + open prop on autocomplete sounds reasonable. |
@oliviertassinari maybe it can be a feature to keep and skip only in free solo mode, what do you think? |
I have never really understood the motivation for the prop in the first place. It feels like a logic you put in place to save requests to the backend API, not something you do to help users. I would be in favor of keeping the autocomplete simple. |
If you want i can make a PR to remove the change |
@marcosvega91 No objection from my side 😬 |
@marcosvega91 the |
@dohomi You can implement the same behavior by controlling the open state. We have a usability issue when |
@oliviertassinari ok yeah - maybe best would be a demo example and leave it by the developer |
It sound's good but you need to change the behaviour of |
@oliviertassinari Can I implement this feature? My idea is to change the return value of both createFilterOptions and useAutocomplete. What you think? |
@marcosvega91 Thanks for the proposal. I'm not sure to follow, which problem you aim to solve? Regarding |
@oliviertassinari solve the problem with !freesolo. Instead of show a message of "No options" I want to show a different message |
The Autocomplete startAfter custom filter works only with the option
freeSolo
otherwise the Popper is shown with noOptionText until the minimum number is hit.Current Behavior 😯
Showcase example with
freeSolo
https://codesandbox.io/s/material-demo-e7oxj
Showcase example without
freeSolo
which seems buggy to me:https://codesandbox.io/s/material-demo-t3my2
Expected Behavior 🤔
startAfter
should work with or without freeSolo prop. It took me very long time to figure this out. Maybe otherwise it should be documented if this is the intended behaviour. Thanks!The text was updated successfully, but these errors were encountered: