Skip to content

Commit

Permalink
haxe 4.15
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Mar 13, 2024
1 parent 27b2397 commit f9209df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haxe/ui/containers/Box.hx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private class Builder extends CompositeBuilder {

@:access(haxe.ui.backend.ComponentImpl)
public override function addComponent(child:Component):Component {
if (child is ItemRenderer && _box.itemRenderer == null) {
if ((child is ItemRenderer) && _box.itemRenderer == null) {
var builder:Builder = cast(_box._compositeBuilder, Builder);
if (builder.hasDataSource) {
_box.itemRenderer = cast(child, ItemRenderer);
Expand Down

0 comments on commit f9209df

Please sign in to comment.