Closed ghost closed 4 years ago
With just the sample code pasted above, there's no way of knowing what data is being returned by the endpoints. This makes it impossible to know if the issue is due to Awesomplete or the data itself.
Although this isn't something I'd typically do (nor should anyone really :) ). I refactored your code to remove all the async/promise activity, and instead called popola()
with hard-coded data.
Use "qq" to search any input to get results. When doing this, you'll see the results of one autocomplete list never appears in another. This confirms awesomplete is not combining lists, the data being returned by your endpoint is.
This should be sufficient evidence to close the issue. @canerandagio1983 if you continue to have problems you believe are due to Awesomplete and would like to file another issue, please provide a Codepen or similar resource that reproduces the issue.
Hi! I use awesomplete to get a list of food products in a textbox that we will call 'textArticoli', when I insert a new food product, in another form called 'newArticolo', I reset the array 'arr' which I pass to 'new Awesomplete ( ) and call 'new Awesomplete (textArticoli, {list: arr});', this creates me a double list, one with the old items and one with the new item, how is it possible to reset the previous Awesomplete list associated with ' textArticoli '?
`
`