Skip to content

Commit

Permalink
release(0.5.5): fix release 0.5.5 (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
vthinkxie committed Oct 21, 2017
1 parent ce5b0bc commit 4efd6f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/components/dropdown/nz-dropdown-button.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ export class NzDropDownButtonComponent extends NzDropDownComponent implements On
this._setTriggerWidth();
}
}
this.nzVisible = visible;
this.nzVisibleChange.emit(this.nzVisible);
if (this.nzVisible !== visible) {
this.nzVisible = visible;
this.nzVisibleChange.emit(this.nzVisible);
}
this._changeDetector.markForCheck();
}

Expand Down
8 changes: 5 additions & 3 deletions src/components/dropdown/nz-dropdown.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class NzDropDownComponent implements OnInit, OnDestroy, AfterViewInit {
_clickDropDown($event) {
$event.stopPropagation();
if (this.nzClickHide) {
this.nzVisible = false;
this._hide();
}
}

Expand All @@ -139,8 +139,10 @@ export class NzDropDownComponent implements OnInit, OnDestroy, AfterViewInit {
this._setTriggerWidth();
}
}
this.nzVisible = visible;
this.nzVisibleChange.emit(this.nzVisible);
if (this.nzVisible !== visible) {
this.nzVisible = visible;
this.nzVisibleChange.emit(this.nzVisible);
}
this._changeDetector.markForCheck();
}

Expand Down

0 comments on commit 4efd6f7

Please sign in to comment.