-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use CustomEvent constructor instead of deprecated initCustomEvent() #7178
Comments
This would be a breaking change, since |
Just to check in on this: Can-I-use indicates that this is now fully supported by 97.11% of browsers, with IE being the major hold-out. MDN recommends folks replace any code using Edit: |
Any update on this? so dispatch doesn't work anymore? |
@imperator-maximus What browser are you using that doesn't work? Caniuse still shows that all evergreen browsers support it. |
Adobe UXP |
Describe the bug
Compiled components use a deprecated
initCustomEvent
, which is not supported by e.g.happy-dom
.Instead of
it would be nice to use the CustomEvent constructor, which is supported in all modern browsers.
https://caniuse.com/?search=CustomEvent
Reproduction
Open
svelte/internal/index.mjs
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: