gregziegan / elm-autocomplete

Autocomplete for Elm apps; in Elm
http://package.elm-lang.org/packages/thebritican/elm-autocomplete/latest
BSD 3-Clause "New" or "Revised" License
173 stars 43 forks source link

update matches when using `setItems` #17

Closed noobymatze closed 8 years ago

noobymatze commented 8 years ago

Currently using setItems will not result in an update of the potential matches, because filtering will be done using the - by then - old items contained in the current model.

I ran into that, while continually updating the items on user input with completions returned by a remote server. The completions were always 'one char behind'. :D

To make sure, this actually solves the problem, I went ahead and copied the updated code into my project and tried it - with success.

If you need anything else, or this was in fact intended, let me know. :)

Besides that, nice API changes in 3.0!

gregziegan commented 8 years ago

This is great, thanks! I'll merge and publish 3.1 with some documentation updates and the aria feature from #15

noobymatze commented 8 years ago

Awesome, thank you!