darrenjennings / vue-autosuggest

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

Button inside item didn't work as expected. #196

Closed HarikiRito closed 4 years ago

HarikiRito commented 4 years ago

What you did: Add a button into the list item suggestion

What happened: Button click doesn't work (Function not call, and suggestions disappear)

Reproduction sandbox/repository: Code sandbox

Suggested solution: Button click can prevent suggestions from closing and work as expected

darrenjennings commented 4 years ago

You can do it via mouseup.stop https://github.com/darrenjennings/vue-autosuggest/issues/168#issuecomment-585015240