Skip to content

Commit 402daff

Browse files
committed
fix(@uform/core): Fixed the value was not cached when the field was hidden #113
1 parent 68ed3a3 commit 402daff

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/core/src/field.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,10 @@ export class Field {
208208
}
209209

210210
unmount() {
211-
this.value = undefined
212-
this.initialValue = undefined
213211
this.visible = false
214212
this.removed = true
215213
if (!this.context) return
216214
this.context.deleteIn(this.name)
217-
this.context.deleteInitialValues(this.name)
218215
if (typeof this.value === 'object') {
219216
this.context.updateChildrenVisible(this, false)
220217
}

0 commit comments

Comments
 (0)