Skip to content

Commit 0b99e61

Browse files
copy disabled/hidden fields on duplicating container based comps
1 parent 88d6b5a commit 0b99e61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client/packages/lowcoder/src/comps/utils/gridCompOperator.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ export class GridCompOperator {
138138
const compInfo = parseCompType(compType);
139139
const compName = nameGenerator.genItemName(compInfo.compName);
140140
const compJSONValue = isContainer(itemComp.children.comp)
141-
? itemComp.children.comp.getPasteValue(nameGenerator)
141+
? {
142+
...itemComp.children.comp.toJsonValue(),
143+
...itemComp.children.comp.getPasteValue(nameGenerator) as Record<string, any>,
144+
}
142145
: itemComp.children.comp.toJsonValue();
143146
copyCompNames.add(compName);
144147
multiAddActions.push(

0 commit comments

Comments
 (0)