Skip to content

Commit

Permalink
copy disabled/hidden fields on duplicating container based comps
Browse files Browse the repository at this point in the history
  • Loading branch information
raheeliftikhar5 committed Jul 26, 2024
1 parent 88d6b5a commit 0b99e61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/packages/lowcoder/src/comps/utils/gridCompOperator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ export class GridCompOperator {
const compInfo = parseCompType(compType);
const compName = nameGenerator.genItemName(compInfo.compName);
const compJSONValue = isContainer(itemComp.children.comp)
? itemComp.children.comp.getPasteValue(nameGenerator)
? {
...itemComp.children.comp.toJsonValue(),
...itemComp.children.comp.getPasteValue(nameGenerator) as Record<string, any>,
}
: itemComp.children.comp.toJsonValue();
copyCompNames.add(compName);
multiAddActions.push(
Expand Down

0 comments on commit 0b99e61

Please sign in to comment.