Skip to content

Comments

feat(vue3): force camelCase for events in <template>#1263

Merged
susnux merged 1 commit intomainfrom
feat/vue3-v-on-event-hyphenation
Jan 14, 2026
Merged

feat(vue3): force camelCase for events in <template>#1263
susnux merged 1 commit intomainfrom
feat/vue3-v-on-event-hyphenation

Conversation

@ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Jan 14, 2026

<template>
	<!-- ✅ Good -->
	<MyComponent @customEvent="handleEvent" />
	<!-- ✅ Also fine -->
	<MyComponent @namespace:customEvent="handleEvent" />

	!-- ❌ Bad -->
	<MyComponent @custom-event="handleEvent" />
</template>

@ShGKme ShGKme requested review from Antreesy and susnux January 14, 2026 12:20
@ShGKme ShGKme self-assigned this Jan 14, 2026
@ShGKme ShGKme added enhancement New feature or request 3. to review labels Jan 14, 2026
@ShGKme ShGKme linked an issue Jan 14, 2026 that may be closed by this pull request
@susnux susnux merged commit 88dbb6c into main Jan 14, 2026
7 checks passed
@susnux susnux deleted the feat/vue3-v-on-event-hyphenation branch January 14, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💥 Force camelCase in Vue everywhere

2 participants