Skip to content

Commit 8633109

Browse files
authored
Merge pull request #10 from mustafa0x/patch-1
add cleanup to onDestroy
2 parents 0cef8ce + 13cbcd1 commit 8633109

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/NumberSpinner.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
onMount(() => {
7070
htmlNode = document.querySelector("html");
7171
htmlNodeOriginalCursor = htmlNode.style.cursor;
72+
73+
return () => {
74+
htmlNode.style.cursor = htmlNodeOriginalCursor;
75+
}
7276
});
7377
7478
// update all values (preciseValue, visibleValue)

0 commit comments

Comments
 (0)