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

Support a minimum query length #183

Open
orangejulius opened this issue May 19, 2020 · 1 comment
Open

Support a minimum query length #183

orangejulius opened this issue May 19, 2020 · 1 comment

Comments

@orangejulius
Copy link
Member

Very short autocomplete queries (one or two characters) are often not particularly helpful. Many autocomplete interfaces support a minimum input length, below which a query won't be sent to the underlying search backend, and instead a message (something like "enter 1 more character to search...") will be displayed.

We should support something similar.

@missinglink
Copy link
Member

This is implemented in the code but not configurable:
https://github.com/pelias/leaflet-plugin/blob/master/src/core.js#L23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants