Skip to content

Commit d8a36d0

Browse files
fix(compiler-core): only merge true handlers (#4577)
1 parent f31a6c1 commit d8a36d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-core/src/transforms/transformElement.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ function dedupeProperties(properties: Property[]): Property[] {
807807
const name = prop.key.content
808808
const existing = knownProps.get(name)
809809
if (existing) {
810-
if (name === 'style' || name === 'class' || name.startsWith('on')) {
810+
if (name === 'style' || name === 'class' || isOn(name)) {
811811
mergeAsArray(existing, prop)
812812
}
813813
// unexpected duplicate, should have emitted error during parse

0 commit comments

Comments
 (0)