Skip to content
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

(fix) treat unknown events on element with action as custom events #1010

Closed

Conversation

dummdidumm
Copy link
Member

Svelte is very dynamic in its nature. One feature is to add actions to DOM elements which in turn means additional events could be dispatched on that element. For the default namespace, transform unknown events on an element with an action so that they are treated as custom events.
#431

Svelte is very dynamic in its nature. One feature is to add actions to DOM elements which in turn means additional events could be dispatched on that element. For the default namespace, transform unknown events on an element with an action so that they are treated as custom events.
sveltejs#431
@dummdidumm
Copy link
Member Author

I just realized this would break people who enhanced the definition with their own, because we don't know of those and would still transform to the CustomEvent<any> fallback. I don't think this is desireable.

@dummdidumm dummdidumm marked this pull request as draft May 17, 2021 12:55
@dummdidumm
Copy link
Member Author

Actions can now be typed in various ways; closing

@dummdidumm dummdidumm closed this Feb 8, 2023
@dummdidumm dummdidumm deleted the custom-events-on-el-with-action branch February 8, 2023 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant