Skip to content

Commit

Permalink
fix(@uform/core): add onFormReset hook
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Dec 17, 2019
1 parent fe7aa3b commit 8633ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ export function createForm<FieldProps, VirtualFieldProps>(
if (isFn(options.onReset)) {
options.onReset()
}

heart.publish(LifeCycleTypes.ON_FORM_RESET, state)
let validateResult: void | IFormValidateResult
if (validate) {
validateResult = await formApi.validate(selector, { throwErrors: false })
Expand Down

0 comments on commit 8633ae5

Please sign in to comment.