fix(repl): attach listener above svelte event delegator (#12127) (#12135)

pull/12195/head
Theodor Steiner 6 days ago committed by GitHub
parent 872906c4f2
commit 48d1ef96a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -86,7 +86,8 @@
}
if (action === 'catch_clicks') {
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)
document.addEventListener('click', (event) => {
if (event.which !== 1) return;
if (event.metaKey || event.ctrlKey || event.shiftKey) return;
if (event.defaultPrevented) return;

Loading…
Cancel
Save