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

Commit faca12c

Browse files
Merge pull request #144 from darkcris1/fix-tooltip
fix: tooltip stucked #140
2 parents d8f8172 + f34aa51 commit faca12c

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)