Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit f34aa51

Browse files
author
Cris Fandino
committed
fix: tooltip stucked #140
1 parent ba92ccf commit f34aa51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/svelte-materialify/src/components/Tooltip/Tooltip.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,11 @@
112112
}
113113
},
114114
});
115-
116115
onMount(() => {
117116
document.body.appendChild(tooltip);
118117
updateTooltipPosition();
118+
119+
return () => document.body.removeChild(tooltip);
119120
});
120121
</script>
121122

0 commit comments

Comments
 (0)