Skip to content

Commit 1cdbf34

Browse files
fixed default value for form comps inside listview doesn't reflect on changing dyanmic data
1 parent 54e1b50 commit 1cdbf34

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

client/packages/lowcoder/src/comps/generators/withMultiContext.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,14 @@ export function withMultiContext<TCtor extends MultiCompConstructor>(VariantComp
124124
const mapComps = this.getMap();
125125
if (mapComps.hasOwnProperty(key) && !paramsEqual(params, mapComps[key].getParams())) {
126126
// refresh the item, since params changed
127-
this.dispatch(deferAction(wrapChildAction(MAP_KEY, MapCtor.batchDeleteAction([key]))));
127+
// this.dispatch(deferAction(wrapChildAction(MAP_KEY, MapCtor.batchDeleteAction([key]))));
128+
this.dispatch(wrapChildAction(MAP_KEY, MapCtor.batchDeleteAction([key])));
129+
comp = this.getOriginalComp();
130+
} else {
131+
comp = this.getOriginalComp()
132+
.setParams(params)
133+
.changeDispatch(wrapDispatch(wrapDispatch(this.dispatch, MAP_KEY), key));
128134
}
129-
comp = this.getOriginalComp()
130-
.setParams(params)
131-
.changeDispatch(wrapDispatch(wrapDispatch(this.dispatch, MAP_KEY), key));
132135
}
133136
return comp;
134137
}

client/packages/lowcoder/src/comps/utils/supademoDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const SupaDemoDisplay = ({ url, modalWidth = '75%', modalTop = '6%', showText =
3535
style={{ top: modalTop }}
3636
okButtonProps={{ style: { display: 'none' } }}
3737
cancelButtonProps={{ style: { display: 'none' } }}
38-
bodyStyle={{ padding: 0 }}
38+
styles={{ body: {padding: 0} }}
3939
>
4040
<div style={{ position: 'relative', boxSizing: 'content-box', maxHeight: '80vh', width: '100%', aspectRatio: '1.7712177121771218', padding: '40px 0' }}>
4141
<iframe

0 commit comments

Comments
 (0)