-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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] Start after specific number of letters #19591
Comments
What's the use case? |
We need to open the AutoComplete menu/list of options after two key strokes and thought it made sense to come from filter. @oliviertassinari @minaairsupport |
Sorry, we are not really interested in the developer's use case for this. What's the motivation from an end-user perspective? |
The use case for our team for this same feature request would be to disable the filter until x number of characters are typed by the end user...thus limiting the distraction of the combo box until the list is filtered by at least a certain number of characters. |
This comment has been minimized.
This comment has been minimized.
Nice, thank you! Will see if I can get some time set aside for working on a PR. |
Can I work on this? |
This comment has been minimized.
This comment has been minimized.
maybe add another noOptions message when startAfter provided? Something like `Type 1 more character to search' |
@CyanoFresh We won't fix it in the library, but feel free to share your solution to the problem, it could help others. |
I suggest adding more option in filter options, one of them start filter after a specific number of letters
Summary 💡
add startAfter to filterOptions that accept int
Examples 🌈
const filterOptions = createFilterOptions({
matchFrom: 'start',
stringify: option => option.title,
startAfter: 2
});
Motivation 🔦
it will give us more control and I am thinking its not just me requesting this one
The text was updated successfully, but these errors were encountered: