Skip to content
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

How to refresh the autocomplete data? #23

Closed
anantc88 opened this issue Jul 20, 2022 · 2 comments
Closed

How to refresh the autocomplete data? #23

anantc88 opened this issue Jul 20, 2022 · 2 comments

Comments

@anantc88
Copy link

Hi,
Is there a way to refresh the autocomplete options once the list is loaded. For example, I am using a dropdown next to the search bar. Based on the selection in the dropdown, the results in the autocomplete should get filtered.
However, if I fire the Autocomplete event every time a value is selected, it creates a new dropdown list based on the different datasource.
Any suggestions to refresh or destroy the existing autocomplete dropdown to repopulate with freshdata?

@Binternet
Copy link

@anantc88 see if this helps:
#15

@lekoala
Copy link

lekoala commented Nov 15, 2022

if that can help someone, i created this
https://github.com/lekoala/bootstrap5-autocomplete
this has more features regarding server stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants