-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Option to hide the dropdown when query is empty #1020
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
Comments
+1 for this. Might try to tackle it when I get a chance. |
@jods4 I thought the same, this is my current workaround:
|
Thanks for this! I also had to add the following so the dropdown doesn't appear when you backspace out all that was previously typed: onType: function (str) {
if (str === "") {
this.close();
}
} |
That boils down to "Do I want there be suggestions when the field is empty?", which I would accept a new option for. |
@m272cels's suggestion gave me problems when configured with I worked around it by changing it to the following (in addition to @jfishbein's snippet):
|
+1 for this |
Hi, how can I do this in angular 7 anyone knows? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Don't close this, it's stale because everything about this feature has been said and it's waiting an implementation. |
When the user backspaces and empties its query text, Selectize displays all the list of all available options.
(1) Sometimes this doesn't feel like a good UX, especially for AJAX autocompletes.
(2) Especially in the case of AJAX autocompletes, Selectize cache may have grown huge and sorting + displaying all options is slowing down the browser to a crawl.
The text was updated successfully, but these errors were encountered: