bootstrap-autocomplete icon indicating copy to clipboard operation
bootstrap-autocomplete copied to clipboard

Unable to reset the autocomplete

Open danielsjf opened this issue 4 years ago • 2 comments
trafficstars

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.

danielsjf avatar Nov 04 '21 11:11 danielsjf

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

isackblue avatar Aug 09 '22 00:08 isackblue

@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.

danielsjf avatar Aug 09 '22 12:08 danielsjf