Make possible to disable the autocomplete dropdown
If I do not have options but still want to use selectize for tagging, can I turn off the options dropdown and the option_create altogether?
I'm looking for this too
Have you found a way to disable it? Otherwise sounds like an enhancement
I have not. Been just living with the dropdown appearing as the user types with the "Add abc ..." showing.
@ErwanGuillon, @mcalello lets try this
selectize.$control_input.on('keypress', function() { selectize.close(); }); selectize.on('type', function() { selectize.close(); });
+
openOnFocus: false,
Sounds like this would be easy if we refactor Selectize into components, but not quite yet. Meanwhile, let us know how the workaround works!
+1 for this option. On mobile the keyboard comes up because of the filter option, which is not needed on small dropdowns.
This works fine:
onDropdownOpen: function(dropdown) {
dropdown.remove();
}
This works fine:
onDropdownOpen: function(dropdown) { dropdown.remove(); }
Unfortunately this doesn't prevent selectize to insert an item by autocomplete on Enter-keypress. Isn't there any possibility to disable it at all?
@nd-ffx try this instead:
onDropdownOpen: function() {
this.close();
}
Edit: Never mind, this seems to cause issues deselecting the input afterwards.
closing stale issues older than one year. If this issue was closed in error please message the maintainers. All issues must include a proper title, description, and examples.