Skip to content

Commit

Permalink
fix: prevent extra undefined class
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem committed Dec 29, 2023
1 parent 2be167f commit 3cf7c81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const createAttrsWithCustomConfig = (instance: ComponentInternalInstance, propsF
if (typeof key !== 'string') { return target[key] }

if (key === 'class') {
return (normalizeClass(propsFromConfig.value.class) + ' ' + instanceAttrs.class).trim()
return normalizeClass([propsFromConfig.value.class, instanceAttrs.class])
}

if (key === 'style') {
Expand Down

0 comments on commit 3cf7c81

Please sign in to comment.