diff --git a/sixtyfps_compiler/widgets/fluent/sixtyfps_widgets.60 b/sixtyfps_compiler/widgets/fluent/sixtyfps_widgets.60 index d5a6539e9..e9fb7d732 100644 --- a/sixtyfps_compiler/widgets/fluent/sixtyfps_widgets.60 +++ b/sixtyfps_compiler/widgets/fluent/sixtyfps_widgets.60 @@ -639,16 +639,16 @@ export ComboBox := FocusScope { padding: 10px; Text { text: value; - item-area := TouchArea { - width: 100%; - height: 100%; - clicked => { - if (root.enabled) { - root.current-index = idx; - root.current-value = value; - root.selected(root.current-value); - } - } + } + } + item-area := TouchArea { + width: 100%; + height: 100%; + clicked => { + if (root.enabled) { + root.current-index = idx; + root.current-value = value; + root.selected(root.current-value); } } } diff --git a/sixtyfps_compiler/widgets/ugly/sixtyfps_widgets.60 b/sixtyfps_compiler/widgets/ugly/sixtyfps_widgets.60 index 212f30015..adca2ead6 100644 --- a/sixtyfps_compiler/widgets/ugly/sixtyfps_widgets.60 +++ b/sixtyfps_compiler/widgets/ugly/sixtyfps_widgets.60 @@ -583,20 +583,20 @@ export ComboBox := Rectangle { VerticalLayout { // FIXME: ideally this layout shouldn't be required Text { text: value; - item-area := TouchArea { - width: 100%; - height: 100%; - clicked => { - if (root.enabled) { - root.current-index = idx; - root.current-value = value; - root.selected(root.current-value); - } - //is-open = false; - } - } } } + item-area := TouchArea { + width: 100%; + height: 100%; + clicked => { + if (root.enabled) { + root.current-index = idx; + root.current-value = value; + root.selected(root.current-value); + } + //is-open = false; + } + } } } }