We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49370f9 commit a6eb2a9Copy full SHA for a6eb2a9
client/packages/lowcoder/src/comps/controls/codeControl.tsx
@@ -189,6 +189,7 @@ export function codeControl<
189
const cardContent = params.disableCard
190
? ""
191
: getCardContent(this.unevaledValue, this.valueAndMsg, codeControlParams);
192
+ const { key, ...restParams } = params;
193
return (
194
<EditorContext.Consumer>
195
{(editorState) => (
@@ -197,7 +198,8 @@ export function codeControl<
197
198
<>
199
<Suspense fallback={null}>
200
<CodeEditor
- {...params}
201
+ key={key}
202
+ {...restParams}
203
bordered
204
value={this.unevaledValue}
205
codeType={codeType}
0 commit comments