Skip to content

Commit

Permalink
Merge pull request #10 from mustafa0x/patch-1
Browse files Browse the repository at this point in the history
add cleanup to onDestroy
  • Loading branch information
bohnacker authored Nov 25, 2021
2 parents 0cef8ce + 13cbcd1 commit 8633109
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/NumberSpinner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@
onMount(() => {
htmlNode = document.querySelector("html");
htmlNodeOriginalCursor = htmlNode.style.cursor;
return () => {
htmlNode.style.cursor = htmlNodeOriginalCursor;
}
});
// update all values (preciseValue, visibleValue)
Expand Down

0 comments on commit 8633109

Please sign in to comment.