v-slot:activator={ on } does not works for other components I built? #11667
and in app.vue I found the tooltip does not show when cursor hovering the h3 text? Is it possible to do that? |
Answered by
jacekkarczmarczyk
Jun 18, 2020
Replies: 1 comment
|
Your component doesn't support any events, so for example if you do <my-test @click="showAlert" />nothing will happen when you click it. You could use native events to fix it Solution: // my-test.vue
<template>
<h3 v-on="$listeners">
test
</h3>
</template> |
0 replies
Answer selected by
KaelWD
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your component doesn't support any events, so for example if you do
nothing will happen when you click it. You could use native events to fix it
<my-test @click.native="showAlert" />but that's not whatv-ondoes.Solution:
https://codepen.io/jkarczm/pen/WNroLbX