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
I am not sure if there is a hook here where I can track when user starts typing?
I have tried the following but doesnt work...
const element = document.querySelector("#my-autocomplete-container");
const id = "app-site-search__input";
accessibleAutocomplete({
element: element,
id: id,
confirmOnBlur: false,
autoselect: true,
source: customSuggest,
templates: {
inputValue: inputValueTemplate,
suggestion: suggestionTemplate,
},
});
// attach event listener
let input_field = document.getElementById(id);
// generate a debounced version with a min time between calls of 1.5 seconds
let searchTerm = function () {
console.log('searched'+ input_field.value)
};
input_field.addEventListener("input", searchTerm);
onConfirm only gets fired when user presses enter which is not what I want.
The text was updated successfully, but these errors were encountered:
Hi,
I am not sure if there is a hook here where I can track when user starts typing?
I have tried the following but doesnt work...
onConfirm only gets fired when user presses enter which is not what I want.
The text was updated successfully, but these errors were encountered: