-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Comments
This is a feature request, or rather an enhancement that you're requesting. However some might argue that it's working correctly because you could just add My stance is this, its fine the way it is.
I'll leave this open for other core team members to weigh in, but I think this issue is going to get closed. |
Hey @MatthewAry, I understand where you're coming from regarding bug/feature as I was on the fence. The reason I swayed towards bug, and in response to answer 2, removing the tool tip is not a great option if you want a tooltip to be dynamic. In my case I wanted a button that only had a tool tip when disabled. This was my workaround of which I would welcome someone sharing a better solution if I'm being stupid:
Note that in this approach I had to duplicate the content within a v-else which is not 'DRY'. If my proposal to have the tooltip background hide when the value is To respond to point 1 - you are right, there almost always is, however the workaround is messy and I believe it still to be unintuitive behaviour. |
Did you try using a the |
I read through the props looking for one like this previously and did not spot that which is frustrating. This solves the issue just fine, don't know how I read passed that one. Thank you @MatthewAry -> closing. |
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
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.
The text was updated successfully, but these errors were encountered: