-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Description
Describe the bug
Hi,
the change in this commit
Breaks i a use case where
the event is added inside of a web component created with svelte >= v5.42.3
and also from another bundle which renders the webcomponent with svelte < 5.42.3 (propbably).
so something like this:
<my-element onclick={()=>console.log("hi")}>Where "my-element" is a web-component created with svelte
In this case the call to
delegate.call()breaks with error "delegate.call is not a function"
Reproduction
Create a webcomponent with latest svelte, which also binds a "click" event to its "host" element, and bundle it.
Create a svelte app which uses the webcomponent and use onclick to bind the event on the custom-element.
Click on the element
Error arises.
Logs
System Info
Latest Chrome, Edge, Firefox, SafariSeverity
blocking an upgrade
tino-prahl, philippmoehler0440, svenwelte2872, DavidFischer1010, erknog and 2 morejulianploehn and ewolution94
Metadata
Metadata
Assignees
Labels
No labels