Skip to content

Commit

Permalink
fix(module:sf:tree-select): fix children repeat data when expand chan…
Browse files Browse the repository at this point in the history
…ges (#260)
  • Loading branch information
cipchk authored Nov 6, 2018
1 parent 598f9ab commit 2bfd75f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export class TreeSelectWidget extends ControlWidget implements OnInit {
ui.expandChange(e)
.pipe(map((list: SFSchemaEnum[]) => this.tranData(list)))
.subscribe(res => {
e.node.clearChildren();
e.node.addChildren(res);
this.dc();
});
Expand Down

0 comments on commit 2bfd75f

Please sign in to comment.