mirror of https://github.com/sveltejs/svelte
fix: handle event delegation in custom elements (#17057)
Fixes issue where handle_event_propagation breaks when delegated events are arrays instead of functions, which can happen in custom elements used across different Svelte versions. Changes: 1. Compiler: Don't delegate events in custom element builds 2. Runtime: Handle both function and array delegates defensively This prevents cross-version compatibility issues with custom elements.pull/17497/head
parent
2eb54f57ae
commit
d6e70b661b
Loading…
Reference in new issue