From 3da2765bbd7fdf9f8ca06105ca6fa9fda4a87e6b Mon Sep 17 00:00:00 2001 From: Janry Date: Mon, 27 Jul 2020 20:59:22 +0800 Subject: [PATCH] fix(core): fix unmount remove errors (#976) --- packages/core/src/externals.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/core/src/externals.ts b/packages/core/src/externals.ts index 1d4a67713dc..bbe052c0d3e 100644 --- a/packages/core/src/externals.ts +++ b/packages/core/src/externals.ts @@ -307,7 +307,12 @@ export const createFormExternals = ( syncFormMessages('warnings', published) } - if (dirtys.visible || dirtys.display || dirtys.editable) { + if ( + dirtys.visible || + dirtys.display || + dirtys.editable || + dirtys.unmounted + ) { //fix #682 if (dirtys.unmounted) { if (supportUnmountClearStates(published.path)) {