Skip to content

Commit

Permalink
fix(compiler-core): only merge true handlers (#4577)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme authored Sep 21, 2021
1 parent f31a6c1 commit d8a36d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-core/src/transforms/transformElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ function dedupeProperties(properties: Property[]): Property[] {
const name = prop.key.content
const existing = knownProps.get(name)
if (existing) {
if (name === 'style' || name === 'class' || name.startsWith('on')) {
if (name === 'style' || name === 'class' || isOn(name)) {
mergeAsArray(existing, prop)
}
// unexpected duplicate, should have emitted error during parse
Expand Down

0 comments on commit d8a36d0

Please sign in to comment.