Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mateothegreat committed Nov 3, 2024
1 parent f54252c commit 10f8307
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/lib/default-overlay.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@
onMount(() => {
instance.element = ref;
modalContentRef?.focus();
document.addEventListener('mousedown', handleClick);
});
onDestroy(() => {
dispatch('close');
// Remove click event listener on cleanup
document.removeEventListener('mousedown', handleClick);
});
</script>
Expand Down
9 changes: 5 additions & 4 deletions test/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@sveltejs/vite-plugin-svelte-inspector": "^3.0.1",
"@tsconfig/svelte": "^5.0.4",
"svelte": "^5.1.4",
"svelte-check": "^4.0.5",
Expand Down
5 changes: 3 additions & 2 deletions test/app/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'

export default {
// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
// for more information about preprocessors
preprocess: vitePreprocess(),
vitePlugin: {
inspector: true
}
}

0 comments on commit 10f8307

Please sign in to comment.