-
Notifications
You must be signed in to change notification settings - Fork 957
fix(Tooltip): hide when text prop & slot are empty
#2232
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
Conversation
|
Why add a tooltip if you don't pass text to it? π€ You could also use the |
|
To be honest I didn't understand the I found the prevent prop a bit complex when using This would provide a more intuitive way to manage tooltips in scenarios with dynamic content. |
text prop / slot are empty
text prop / slot are emptytext prop & slot are empty
|
Would you mind fixing the lint? |
|
fixed. |
|
Now the |
|
sorry, fixed again, I got used to auto-importsπ |
|
Thanks! π |
β Type of change
π Description
Hello,
I added a visibility option for Tooltips that checks if both the text prop and the slot are empty. If both are empty, the tooltip will not be shown at all. This is useful for situations where you have tooltips in a loop and want to display the tooltip for only some of the items in the loop.