Skip to content

Commit f2b7475

Browse files
authored
Merge pull request #1033 from Sysvale/bugfix/hide-tooltip-when-it-doesnt-exist
Bugfix/hide tooltip when it doesnt exist
2 parents e99954a + b1b0def commit f2b7475

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sysvale/cuida",
3-
"version": "3.150.0",
3+
"version": "3.150.1",
44
"description": "A design system built by Sysvale, using storybook and Vue components",
55
"repository": {
66
"type": "git",

src/components/Tooltip.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- eslint-disable vue/multi-word-component-names -->
22
<template>
33
<div
4-
v-cdstip="tooltipConfig"
4+
v-cdstip="hasText && tooltipConfig"
55
class="tooltip-width"
66
:data-tippy-placement="position"
77
:data-tippy-allowHTML="true"
@@ -88,6 +88,8 @@ const tooltipConfig = computed(() => {
8888
},
8989
};
9090
});
91+
92+
const hasText = computed(() => props.text && props.text.length > 0);
9193
</script>
9294

9395
<style lang="scss">

0 commit comments

Comments
 (0)