Skip to content

Commit

Permalink
fix(@uform/core): remove excess updateChildVisible (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored Jul 18, 2019
1 parent 71c40bd commit 32856f1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/core/src/field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,7 @@ export class Field implements IField {
if (!this.hiddenFromParent) {
this.context.deleteIn(this.name)
}
//如果是卸载节点,会自动遍历树节点逐个卸载
if (typeof this.value === 'object') {
this.context.updateChildrenVisible(this, false)
}

}

public checkState(published = this.publishState()) {
Expand Down

0 comments on commit 32856f1

Please sign in to comment.