Skip to content

Commit

Permalink
fix(module:cascader): fix reset trigger redraw (#3481)
Browse files Browse the repository at this point in the history
close #3480
  • Loading branch information
Wendell authored and wenqi73 committed Jun 5, 2019
1 parent 3df7013 commit 7c0e30c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/cascader/nz-cascader.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ export class NzCascaderService implements OnDestroy {
this.selectedOptions = [];

if (first && this.cascaderComponent.nzLoadData && !hasValue) {
// Should also notify the component that value changes. Fix #3480.
this.$redraw.next();
return;
} else {
initColumnWithIndex(0);
Expand Down

0 comments on commit 7c0e30c

Please sign in to comment.