Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

It is possible to show autosuggestions list after user click in show input? #56

Open
jakubstankowski opened this issue Jul 29, 2019 · 3 comments

Comments

@jakubstankowski
Copy link

Hi!

I have question - it is possible to show suggestions list after user click in input ?
I mean something like google, show list only click in input

thanks for answer!

@marcboule98
Copy link

Yes, it's possible.

You can save all your result on one array, and in the data prop, put and empty array. Then you trigger your click event on whatever you want, and equals the empty array to your original array with all your results.

<vue-bootstrap-typeahead :data="emptyArray"></vue-bootstrap-typeahead>
triggerMethod: function(){ this.emptyArray = this.originalArray; }

I think this is what you want :)

@jakubstankowski
Copy link
Author

it's not working

@mattzollinhofer
Copy link

I merged a fix for this into my fork (https://github.com/mattzollinhofer/vue-typeahead-bootstrap) of this project that I'm actively maintaining.

You can find it on npm here: https://www.npmjs.com/package/vue-typeahead-bootstrap.

I hope this helps!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants