Skip to content

How can I use $emit correctly? #7571

Discussion options

You must be logged in to vote

Yes, the issue is related to $emit function
You need to pass the $event as a second argument like so

<!-- Parent.vue  -->

<template>
  <div>
    <DxTabs
      @item-click="$emit('groupClick', $event)"
    />
  </div>
</template>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mbnoimi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants