darrenjennings / vue-autosuggest

🔍 Vue autosuggest component.
https://darrenjennings.github.io/vue-autosuggest
MIT License
621 stars 91 forks source link

How to use multiple vue-autosuggest components in the same page #198

Closed deandelponte closed 4 years ago

deandelponte commented 4 years ago

Do you have examples of how to use the latest build to utilize multiple vue-autosuggest components on the same page? I've been unable to find a way to do this in the documentation.

Thanks!

darrenjennings commented 4 years ago

It should "just work", but there's a demo on the readme that should give you a working example: codesandbox.io/s/vueautosuggest-multiple-vue-autosuggests-545ee

deandelponte commented 4 years ago

Thank-you for your response

jesseschutt commented 3 years ago

Thanks for your work on this component!

If I'm not mistaken, doesn't multiple instances result in duplicate ids on the page?

AdrianBathurst commented 3 years ago

The input field's id generates unique, but the tags surrounding it don't generate unique...

image

image

jesseschutt commented 3 years ago

Thank you for the explanation @AdrianBathurst 👍