Skip to content

Commit

Permalink
fix(form): setFields未触发校验 (#2400)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-huxiyang authored Jul 2, 2024
1 parent e1ad53e commit 82c05a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/packages/form/useform.taro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class FormStore {
item.entity.onStoreChange('update')
}
})
this.validateFields()
}

setCallback = (callback: Callbacks) => {
Expand Down
1 change: 1 addition & 0 deletions src/packages/form/useform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class FormStore {
item.entity.onStoreChange('update')
}
})
this.validateFields()
}

setCallback = (callback: Callbacks) => {
Expand Down

0 comments on commit 82c05a9

Please sign in to comment.