floating-vue icon indicating copy to clipboard operation
floating-vue copied to clipboard

Returning a boolean false on the content property of a tooltip renders 'false'

Open ant1m4tt3r opened this issue 5 years ago • 2 comments

If I set the tooltip value as an object, with the property content being the result of a function witch returns a string or false, the string 'false' is rendered if boolean false is the return of the function.

Already got an idea of what is happening. I'll make a PR soon

ant1m4tt3r avatar Aug 22 '19 20:08 ant1m4tt3r

also returning an empty string or null would still display the tooltip. I'd expect to be able to cancel the tooltip conditionally based on something that only gets computed on hover. More context here: https://github.com/nextcloud/nextcloud-vue/issues/1567#issuecomment-725535802

PVince81 avatar Nov 11 '20 16:11 PVince81

ah, I found this which claims that a falsy value should hide the tooltip: https://github.com/Akryum/v-tooltip/issues/136

PVince81 avatar Nov 11 '20 16:11 PVince81