We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 872906c commit 48d1ef9Copy full SHA for 48d1ef9
sites/svelte-5-preview/src/lib/Output/srcdoc/index.html
@@ -86,7 +86,8 @@
86
}
87
88
if (action === 'catch_clicks') {
89
- document.body.addEventListener('click', (event) => {
+ // attached to document to not interfere with svelte's event delegators that are attached to the app root (document.body)
90
+ document.addEventListener('click', (event) => {
91
if (event.which !== 1) return;
92
if (event.metaKey || event.ctrlKey || event.shiftKey) return;
93
if (event.defaultPrevented) return;
0 commit comments