vue-typeahead-bootstrap
vue-typeahead-bootstrap copied to clipboard
@hit is being called twice
When I type some characters into the typeahead and click on a suggestion in the list, the @hit event is emitted twice - once with a string value and once with an object value:
This behaviour is undocumented, and looking at the repo tests, untested - I can see a test confirming that the @hit event was called, but not testing what the parameter is that gets passed, not that it was only emitted once (or twice, if that's the desired behaviour)
It also happens when typing characters and hitting enter. Am I seeing a bug due to my implementation?