Skip to content

Commit abcd812

Browse files
authored
Merge pull request #1061 from dnum-mi/fix/tooltip-bug-in-console
fix(DsfrTooltip): Corrige erreur tooltip dans la console
2 parents 4a2257d + d7fcf6a commit abcd812

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/DsfrTooltip/DsfrTooltip.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ const onMouseEnterHandler = (event: MouseEvent) => {
107107
if (props.onHover && (event.target === source.value || source.value?.contains(event.target as Node))) {
108108
show.value = true
109109
// @ts-ignore internal property available just for this component
110-
globalThis.__vueDsfr__lastTooltipShow.value = false
110+
if (globalThis.__vueDsfr__lastTooltipShow) {
111+
// @ts-ignore internal property available just for this component
112+
globalThis.__vueDsfr__lastTooltipShow.value = false
113+
}
111114
}
112115
}
113116

0 commit comments

Comments
 (0)