Skip to content

Commit 1fd1c46

Browse files
fix(ConvertProxyProperty): Defer group visibility to child properties
1 parent 5b60807 commit 1fd1c46

File tree

1 file changed

+9
-0
lines changed
  • src/Common/Misc/ConvertProxyProperty

1 file changed

+9
-0
lines changed

src/Common/Misc/ConvertProxyProperty/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,15 @@ export function proxyPropToProp(property, ui) {
132132

133133
if (isGroupWidget(ui.widget)) {
134134
prop.children = property.children.map((p, idx) => proxyPropToProp(p, ui.children[idx]));
135+
prop.show = (ctx) => {
136+
let visible = false;
137+
prop.children.forEach((propChild) => {
138+
if (propChild.show(ctx)) {
139+
visible = true;
140+
}
141+
});
142+
return visible;
143+
};
135144
}
136145

137146
return prop;

0 commit comments

Comments
 (0)