Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report][3.5.16] v-btn does not show icon when using v-tooltip #19651

Open
alanscordoba opened this issue Apr 19, 2024 · 4 comments
Open

Comments

@alanscordoba
Copy link

Environment

Vuetify Version: 3.5.16
Vue Version: 3.4.23
Browsers: Chrome 123.0.0.0
OS: Windows 10

Steps to reproduce

See the example

Expected Behavior

Show icon

Actual Behavior

Does not show the icon

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

If v-tooltip is removed it works fine.

@alanscordoba
Copy link
Author

Ok thanks, that worked. It's strange that you have to add without properties. I don't know if it's what's expected.

@mirocklez
Copy link

In the docs, the default template is:

<v-tooltip text="Tooltip">
  <template v-slot:activator="{ props }">
    <v-btn v-bind="props" icon="mdi-plus">test</v-btn>
  </template>
</v-tooltip>

and it is working like this.

@alanscordoba
Copy link
Author

alanscordoba commented Apr 23, 2024

Is there any way to avoid having to emit the click event manually?

<template>
 <v-tooltip text="Tooltip">
        <template v-slot:activator="{ props }">
            <v-btn v-bind="props" icon="mdi-plus" @click="$emit('click')"></v-btn>
        </template>
    </v-tooltip>
</template>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants