From 8633ae5f4d14a2f9a03c494d870df3a996497f39 Mon Sep 17 00:00:00 2001 From: janrywang Date: Tue, 17 Dec 2019 12:10:35 +0800 Subject: [PATCH] fix(@uform/core): add onFormReset hook --- packages/core/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index ca3531bd1e0..33c7cf29aa5 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -776,7 +776,7 @@ export function createForm( 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 })