Skip to content

fix: Preserve event attribute casing in svelte 5#2347

Merged
dummdidumm merged 2 commits into
sveltejs:masterfrom
jjones315:fix_preserveEventAttributeCasing
Apr 25, 2024
Merged

fix: Preserve event attribute casing in svelte 5#2347
dummdidumm merged 2 commits into
sveltejs:masterfrom
jjones315:fix_preserveEventAttributeCasing

Conversation

@jjones315

Copy link
Copy Markdown
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.

@dummdidumm dummdidumm left a comment

Copy link
Copy Markdown
Member

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
@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