Skip to content

Commit

Permalink
fix(theme): solve issue with class as string array definition (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek committed Jul 18, 2024
1 parent bc1b497 commit 754e1ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/oruga/src/composables/defineClasses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ type ComputedClass = readonly [
export const getActiveClasses = (classes: ClassBind[]): string[] => {
if (!classes) return [];
return classes.flatMap((bind) =>
Object.keys(bind).filter((key) => key && bind[key]),
Object.keys(bind)
.filter((key) => key && bind[key])
.flatMap((v) => v.split(" ")),
);
};

Expand Down

0 comments on commit 754e1ee

Please sign in to comment.