[Vuejs]-Pass to a component, via slot, a component that emits events

0👍

It seems like you’re using a custom component button. You either need to bind the @click handler to prop callback or use @click.native to apply the click handler.

To help debugging events and other issues such as with Vuex in the future, you can use the Vue browser dev tools.

If you install that plugin, and check the events stream you can see what events are being emitted by what. For example, if you haven’t correctly set up your click handler with your custom button then you won’t see the event getting emitted.

Leave a comment