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.2] VTooltip Renders Empty background when no text is passed #20835

Open
tbenyon opened this issue Jan 4, 2025 · 0 comments
Open

Comments

@tbenyon
Copy link

tbenyon commented Jan 4, 2025

Environment

Vuetify Version: 3.5.2
Vue Version: 3.5.13
Browsers: Chrome 131.0.0.0
OS: Mac OS 10.15.7

Steps to reproduce

  1. Create a VTooltip
  2. Pass empty string OR undefined in "text" prop
<v-tooltip text="">
  <template v-slot:activator="{ props }">
    <v-btn v-bind="props">Hover Over Me</v-btn>
  </template>
</v-tooltip>

Expected Behavior

The tooltip would not render at all.

Actual Behavior

The tool tip background renders with no content.

Reproduction Link

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

Other comments

This is arguably a feature but feels more like a bug to me as I believe this was likely the expected behaviour.

Working around to hide/show tooltip in different situations is messy and is far less intuitive.

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

1 participant