-
-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List Dont Append even tought finds the result #374
Comments
Hey @mrelliot69 , If anyone encounters this issue it means that even if results are found through the http/ajax call, they are still filtered. To disable this functionality when, just specify when initializing the plugin.
I spent so much and was shocked when i found this, basically the plugin is not usable if you are using ajax and rely on the default configuration. Hope somebody finds this useful. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Im using this lib, and when searching using the async first takes some time to load since is pending the request finishes, any ideia how to improve this? since when i type bananas, some calls are made but because they are using aync even if the finnal call have results they dont get appended.
Also in some queries the endpoint returns an array with results, but the input dont show them on the list.
0: {value: 'Rua Adelina Lessa dos Santos , 46100-970 Brumado\r\n', data: Array(2)} 1: {value: 'Rua Presidente Castelo Branco , 46100-970 Brumado\r\n', data: Array(2)} }
code im using
` var autoCompleteJS = new autoComplete({
selector: "#" + autoCompleteId,
placeHolder: "Search for Fruits...",
threshold: 4,
data: {
src: async (query) => {
if (query === "") {
return;
}
`
Any ideia if its possible to use ajax insted of async method and awaits
The text was updated successfully, but these errors were encountered: