Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit81d8e1f

Browse files
fix form component fields not resetting
1 parenta362635 commit81d8e1f

File tree

1 file changed

+4
-4
lines changed
  • client/packages/lowcoder/src/comps/comps/formComp

1 file changed

+4
-4
lines changed

‎client/packages/lowcoder/src/comps/comps/formComp/formComp.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,9 @@ let FormTmpComp = class extends FormBaseComp implements IForm {
392392
switch(action.type){
393393
caseCompActionTypes.UPDATE_NODES_V2:{
394394
constret=super.reduce(action);
395-
// When the initial value changes, update the form
396-
if(action.value["initialData"]!==undefined){
397-
queueMicrotask(()=>{
395+
if(ret.children.initialData!==this.children.initialData){
396+
// FIXME: kill setTimeout ?
397+
setTimeout(()=>{
398398
this.dispatch(
399399
customAction<SetDataAction>(
400400
{
@@ -404,7 +404,7 @@ let FormTmpComp = class extends FormBaseComp implements IForm {
404404
false
405405
)
406406
);
407-
});
407+
},1000);
408408
}
409409
returnret;
410410
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp