From 8af1329d193b674fc404c563acdd26f1db74d4ff Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Fri, 26 Apr 2024 09:37:01 +0200 Subject: [PATCH] explicitly type as dynamic --- haxe/ui/core/ItemRenderer.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/haxe/ui/core/ItemRenderer.hx b/haxe/ui/core/ItemRenderer.hx index efec4c87b..97c00284c 100644 --- a/haxe/ui/core/ItemRenderer.hx +++ b/haxe/ui/core/ItemRenderer.hx @@ -159,7 +159,8 @@ class ItemRenderer extends Box { } var v = event.target.value; if (_data != null && event.target.id != null) { - var item = Reflect.getProperty(_data, event.target.id); + trace(event.target.id, _data); + var item:Dynamic = Reflect.getProperty(_data, event.target.id); switch (Type.typeof(item)) { case TObject: item.value = v;