mattzollinhofer/vue-typeahead-bootstrap

On click result item changing input text

Opened this issue · 1 comments

Hello,

I didn't knew where to post it, as I didn't found any forum or chat for this plugin.

Is there any way to disable the behaviour that when you click on the Result Item (popup) then it automatically changes the input value of the field? I want to preserve the original query the user wrote, and not the one resulted by the API.

Thanks in advance.

The effect is likely being caused by this:

I'm sure this could be wrapped in an if check and attached to something like preserve_input or something.
PRs welcome.