fix: correctly apply event.currentTarget (#10216)

pull/10202/head
Dominic Gannaway 12 months ago committed by GitHub
parent 2b2bd06d6f
commit e398047f8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"svelte": patch
---
fix: correctly apply event.currentTarget

@ -1347,6 +1347,8 @@ function handle_event_propagation(root_element, event) {
// @ts-expect-error is used above // @ts-expect-error is used above
event.__root = root_element; event.__root = root_element;
// @ts-expect-error is used above
current_target = root_element;
} }
/** /**

Loading…
Cancel
Save