darrenjennings / vue-autosuggest

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

event handling i #132

Closed FrankIversen closed 5 years ago

FrankIversen commented 5 years ago

Relevant code or config

<div slot="after-suggestions"> <button v-on:click="redirectMethod">See all products</button></div>

What you did: I want to do a redirect when the user hits the button named "See all products" in the "after-suggestions" slot but something is blocking this from happening.

What happened:

The method is never hit. I have tried with inline javascript this also does not execute. It seems no event is emitted.

darrenjennings commented 5 years ago

@FrankIversen you can accomplish this by using @mouseup.stop="redirectMethod" https://github.com/darrenjennings/vue-autosuggest/issues/75#issuecomment-495055870

FrankIversen commented 5 years ago

That did the trick :), Thank you.