Skip to content

Commit

Permalink
fix(core): convert class attribute to string (#6011)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyChelnokov authored Jan 9, 2025
1 parent 0e91b1c commit 4d28af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/utilities/mergeAttributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function mergeAttributes(...objects: Record<string, any>[]): Record<strin
}

if (key === 'class') {
const valueClasses: string[] = value ? value.split(' ') : []
const valueClasses: string[] = value ? String(value).split(' ') : []
const existingClasses: string[] = mergedAttributes[key] ? mergedAttributes[key].split(' ') : []

const insertClasses = valueClasses.filter(
Expand Down

0 comments on commit 4d28af4

Please sign in to comment.