Closed sniepoort closed 3 years ago
Hello @sniepoort,
Try the below configuration and let me know how it goes.
events: {
input: {
close: () => {
autoCompleteJS.open();
}
}
},
@TarekRaafat Thanks for following up :) This works of course, but also means I can never close the resultList haha. I.e. it should still close on input blur, etc. I only want it to stay open on "selection" events, i.e. on enter or click on result. But maybe I have to take care of that through traditional JS instead?
I can't find any mention in the docs on how to keep the resultsList open after making a selection. I assume that the resultsList default behaviour is to close on blur, which happens when you make a selection. However, adding an input.focus() in the selection event doesn't trigger it to reopen.