Skip to content

Commit

Permalink
fix(module:badge): fix badge when text value form empty to non empty (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nuonuoge authored and fisherspy committed May 20, 2019
1 parent 02d1ffd commit fab7312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/badge/badge.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class BadgeComponent implements OnChanges, OnInit, AfterViewInit {

ngAfterViewInit() {
setTimeout(() => {
if (this._ref.nativeElement.children.length > 1) {
if (this._ref.nativeElement.children.length > 1 || (this._ref.nativeElement.children.length === 1 && !this.dot && !this.text)) {
this._children = true;
this.setCls();
}
Expand Down

0 comments on commit fab7312

Please sign in to comment.