Skip to content

Commit 3e953bd

Browse files
committed
Convert className in join
We don't need to call toString() on parent component when passing className down.
1 parent df1d437 commit 3e953bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/class-names.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ class ClassNames {
2727
}
2828

2929
join(className) {
30-
this.appendix = className
30+
if (className instanceof ClassNames) this.appendix = className.toString()
31+
else this.appendix = className
3132
return this
3233
}
3334

0 commit comments

Comments
 (0)