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: Preserve event attribute casing in svelte 5 #2347

Merged

Conversation

jjones315
Copy link
Contributor

Fixes #2345

When running svelte 5+ any attributes beginning with "on*" after left in their original casing.

may be better to check the knownevents.ts list, but not sure its ideal to maintain the event list in multiple places in addition to the performance of searching the array for each attribute.

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not checking a list of events is the right approach as this applies to any event. Thank you!

@dummdidumm dummdidumm merged commit d9e8948 into sveltejs:master Apr 25, 2024
3 checks passed
@jjones315 jjones315 deleted the fix_preserveEventAttributeCasing branch April 25, 2024 12:04
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.

don't lowercase event attributes in Svelte 5
3 participants