Skip to content

Commit a381ff7

Browse files
updated switch name
1 parent 1580a02 commit a381ff7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/packages/lowcoder/src/comps/comps/moduleComp/moduleComp.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const childrenMap = {
8585
events: eventHandlerControl(),
8686
autoHeight: AutoHeightControl,
8787
scrollbars: withDefault(BoolControl, false),
88-
loadInDomWhenHide: withDefault(BoolControl, true),
88+
loadModuleInDomWhenHide: withDefault(BoolControl, true),
8989
};
9090

9191
type DataType = ToDataType<ToInstanceType<typeof childrenMap>>;
@@ -128,7 +128,7 @@ class ModuleTmpComp extends ModuleCompBase {
128128
label: trans("prop.scrollbar"),
129129
})}
130130
{hiddenPropertyView(this.children)}
131-
{this.children.hidden.getView() && this.children.loadInDomWhenHide.propertyView({
131+
{this.children.hidden.getView() && this.children.loadModuleInDomWhenHide.propertyView({
132132
label: "Load module in DOM when hidden",
133133
})}
134134
</Section>
@@ -529,7 +529,7 @@ const ModuleCompWithView = withViewFn(ModuleTmpComp, (comp) => {
529529
if (error) {
530530
return <Placeholder>{error}</Placeholder>;
531531
}
532-
if (comp.children.hidden.getView() && !comp.children.loadInDomWhenHide.getView()) {
532+
if (comp.children.hidden.getView() && !comp.children.loadModuleInDomWhenHide.getView()) {
533533
return null;
534534
}
535535

0 commit comments

Comments
 (0)