vue-typeahead-bootstrap icon indicating copy to clipboard operation
vue-typeahead-bootstrap copied to clipboard

@hit is being called twice

Open AbrahamBrookes opened this issue 1 year ago • 1 comments

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: image image

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?

AbrahamBrookes avatar Jul 22 '22 12:07 AbrahamBrookes