Commit 690b1d5 1 parent 22d03df commit 690b1d5 Copy full SHA for 690b1d5
File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ export function createForm(options: IFormCreatorOptions = {}) {
350
350
if (
351
351
unmountedChanged &&
352
352
( published . display !== false || published . visible === false ) &&
353
- published . unmountRemoveValue
353
+ published . unmountRemoveValue === true
354
354
) {
355
355
if ( published . unmounted ) {
356
356
if ( isValid ( published . value ) ) {
@@ -525,7 +525,6 @@ export function createForm(options: IFormCreatorOptions = {}) {
525
525
dataPath,
526
526
computeState,
527
527
dataType,
528
- unmountRemoveValue,
529
528
useDirty : isValid ( useDirty ) ? useDirty : options . useDirty
530
529
} )
531
530
field . subscription = {
@@ -548,6 +547,10 @@ export function createForm(options: IFormCreatorOptions = {}) {
548
547
state . initialValue = formInitialValue
549
548
}
550
549
550
+ if ( isValid ( unmountRemoveValue ) ) {
551
+ state . unmountRemoveValue = unmountRemoveValue
552
+ }
553
+
551
554
if ( isValid ( value ) ) {
552
555
// value > formValue > initialValue
553
556
state . value = value
You can’t perform that action at this time.
0 commit comments