Is it possible to open the dropdown menu on focus, when no text is inserted?
autocomplete.addFocusListener(event -> {
autocomplete.setOptions(Arrays.asList("foo", "bar", "foobar"));
});
This sets the options, but the dropdown stays closed.
Is it possible to open the dropdown menu on focus, when no text is inserted?
autocomplete.addFocusListener(event -> {
autocomplete.setOptions(Arrays.asList("foo", "bar", "foobar"));
});
This sets the options, but the dropdown stays closed.