We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a362635 commit 81d8e1fCopy full SHA for 81d8e1f
1 file changed
client/packages/lowcoder/src/comps/comps/formComp/formComp.tsx
@@ -392,9 +392,9 @@ let FormTmpComp = class extends FormBaseComp implements IForm {
392
switch (action.type) {
393
case CompActionTypes.UPDATE_NODES_V2: {
394
const ret = super.reduce(action);
395
- // When the initial value changes, update the form
396
- if (action.value["initialData"] !== undefined) {
397
- queueMicrotask(() => {
+ if (ret.children.initialData !== this.children.initialData) {
+ // FIXME: kill setTimeout ?
+ setTimeout(() => {
398
this.dispatch(
399
customAction<SetDataAction>(
400
{
@@ -404,7 +404,7 @@ let FormTmpComp = class extends FormBaseComp implements IForm {
404
false
405
)
406
);
407
- });
+ }, 1000);
408
}
409
return ret;
410
0 commit comments