salim-lachdhaf / dropdown_search

Simple and robust Dropdown with item search feature, making it possible to use an offline item list or filtering URL for easy customization.
MIT License
346 stars 334 forks source link

asyncItems run once(Web) #688

Closed ErsinMandaci closed 1 month ago

ErsinMandaci commented 1 month ago

asyncItems only works when I click first. How do I do this, according to the query I entered, I want to continuously send requests to the service and fill the searchDropdown?

salim-lachdhaf commented 1 month ago

if you are using a version < 6.0.0 , use isFilterOnline = False in popupProps

ErsinMandaci commented 1 month ago

Thank you for the short turnaround time. Resolved.

salim-lachdhaf commented 1 month ago

Your issue has been closed. If we were helpful don't forget to star the repo and the package here.

nathielileal commented 1 month ago

i see that this issue has the same problem as do i, but im using the 6.0.1 version. what can i do?

salim-lachdhaf commented 1 month ago

@nathielileal if you want call your API each time use cacheItems = false . Make sure disableFilter = true if your data is already filtered.

otherwise (for cache strategy) use cacheItems = true and disableFilter = false

please don't hesitate to star the repo if it's useful for you.