Skip to content

Commit

Permalink
Merge pull request #569 from Jarrio/patch-2
Browse files Browse the repository at this point in the history
Update ComponentMacros.hx
  • Loading branch information
ianharrigan authored Jan 20, 2024
2 parents 8629698 + 29beb34 commit ac3d4de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion haxe/ui/macros/ComponentMacros.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1103,9 +1103,11 @@ class ComponentMacros {
propType = propInfo.propertyType;
}
//var propExpr = macro $v{TypeConverter.convertTo(TypeConverter.convertFrom(propValue), propType)};
var propExpr = macro $v{TypeConverter.convertFrom(propValue)};
var pos = Context.currentPos();
var propExpr = macro @:pos(pos) $v{TypeConverter.convertFrom(propValue)};
builder.add(macro $i{varName}.$propName = $propExpr);
} else {

var propExpr = macro $v{TypeConverter.convertFrom(propValue)};
builder.add(macro $i{varName}.$propName = $propExpr);
}
Expand Down

0 comments on commit ac3d4de

Please sign in to comment.