You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you place autoCompleteJS.select(0) in the results event, it fires without error. autoCompleteJS.input.addEventListener("results", function (event) { console.log(event.detail); autoCompleteJS.select(0) });
Type something and item with index 0 is automatically selected.
I guess if autoCompleteJS.select(0) is run before, the Init event may not be finished yet which throws error. Explained also in in PR #369
The following api call
autoCompleteJS.select(0);
is throwing a TypeError
Uncaught TypeError: Cannot set properties of undefined (setting 'event')
To reproduce just enter the api call at the end of the official codepen example:
https://codepen.io/tarekraafat/pen/rQopdW
The text was updated successfully, but these errors were encountered: