vuetifyjs / vuetify

🐉 Vue Component Framework
https://vuetifyjs.com
MIT License
39.86k stars 6.97k forks source link

[Bug Report][3.7.1] v-tooltip directive not handling boolean as documented #20463

Open tvogel opened 1 month ago

tvogel commented 1 month ago

Environment

Vuetify Version: 3.7.1 Vue Version: 3.5.4 Browsers: Firefox 129.0 OS: Linux x86_64

Steps to reproduce

Take a look at the example, hover the three text fields to trigger the tool-tips.

Expected Behavior

As documented: true should show a tool-tip, content should be the inner text, Test true in this case.

false should not show a tool-tip.

undefined is not documented, least surprise would be to behave as if v-tooltip was not specified, so no tool-tip should be shown.

Actual Behavior

true shows a tool-tip but the content is empty.

false also shows a tool-tip with empty content.

undefined does show a tool-tip and the content is all inner HTML (including the "Test undefined" which should only be shown for true).

Reproduction Link

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

KaelWD commented 1 month ago

and the content is all inner HTML

This bit was fixed already by ca49443c6b7302c9dcb14b9be29f3872f512b320