Skip to content

Allow empty autosuggest to suggest options #20

@Enerccio

Description

@Enerccio

For some use cases empty autosuggest should show options but now it's hardcoded not to in js:

if (value.length > 0 && !this.opened) {
  this.opened = true;
} else if (value.length == 0 && this.opened) {
  this.opened = false;
}

This seems like an option that you should be able to choose.

Workaround:

autocomplete.setOptions(...);
autocomplete.getElement().executeJs("(function() { $0.opened=true; })()");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions