Skip to content

Commit

Permalink
ensure css is string (cppia)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Sep 6, 2024
1 parent 45b1cb3 commit 8dce833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haxe/ui/core/Component.hx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Component extends ComponentImpl
var c:Class<Dynamic> = Type.getClass(this);
while (c != null) {
var css = Type.getClassName(c);
var className:String = css.split(".").pop();
var className:String = Std.string(css).split(".").pop();
addClass(className.toLowerCase(), false);
addClass(StringUtil.toDashes(className), false);
if (className.toLowerCase() == "component") {
Expand Down

0 comments on commit 8dce833

Please sign in to comment.