Skip to content

Commit

Permalink
fix(@uform/core): Fixed the value was not cached when the field was h…
Browse files Browse the repository at this point in the history
…idden
  • Loading branch information
janryWang authored Jun 15, 2019
2 parents 60e0917 + 402daff commit 7923e91
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/core/src/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,10 @@ export class Field {
}

unmount() {
this.value = undefined
this.initialValue = undefined
this.visible = false
this.removed = true
if (!this.context) return
this.context.deleteIn(this.name)
this.context.deleteInitialValues(this.name)
if (typeof this.value === 'object') {
this.context.updateChildrenVisible(this, false)
}
Expand Down

0 comments on commit 7923e91

Please sign in to comment.