xcash / bootstrap-autocomplete

Bootstrap Autocomplete
MIT License
168 stars 72 forks source link

Unable to reset the autocomplete #131

Open danielsjf opened 2 years ago

danielsjf commented 2 years ago

Describe the bug I am dynamically updating the autocomplete resolver function from another input field. Unfortunately the enhance function only works the first time. Rerunning it afterwards does not change the resolver. I tried the clear function but it clearly does not do what I want. Is there a way to reset it?

Expected behavior Have a function like $('.class').autoComplete('reset');

Or just update the autocomplete function on rerunning it.

isackblue commented 2 years ago

@danielsjf same thing happens here. Did you got any solution?

danielsjf commented 2 years ago

@isackblue No unfortunately I don't. I half solved it by only loading the resolver when the input value is confirmed. However, when it is changed this fails. I switched for some specific UI flows to another approach.