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

Added function to get current state. #56

Open akoppela opened 6 years ago

akoppela commented 6 years ago

I've did Elm format and added function to get current state. Added tests for functions to work with State as well.

This library keeps a track of selections by key and mouse private. But sometimes it's nice to have access to them. E.g. when I want point to correct aria-activedescendant. Yes it's possible to store local copy, but that does not make sense to do that, because they are already stored. So to store local copy could create potential impossible states.