Skip to content

Commit

Permalink
fix: correctly apply custom design token (badge, dropdown, select, ta…
Browse files Browse the repository at this point in the history
…bmenu) (#17742)

* fix(badge): correctly apply custom design token

* fix(dropdown): correctly apply custom design token

* fix(select): correctly apply custom design token

* fix(tabmenu): correctly apply custom design token
  • Loading branch information
rfreydi authored Feb 21, 2025
1 parent 5671d8c commit ac11d35
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/primeng/src/badge/badge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export class BadgeDirective extends BaseComponent implements OnChanges, AfterVie
}

public ngAfterViewInit(): void {
super.ngAfterViewInit();
this.id = uuid('pn_id_') + '_badge';
this.renderBadgeContent();
}
Expand Down
1 change: 1 addition & 0 deletions packages/primeng/src/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,7 @@ export class Dropdown extends BaseComponent implements OnInit, AfterViewInit, Af
}

ngAfterViewInit() {
super.ngAfterViewInit();
if (this.editable) {
this.updateEditableLabel();
}
Expand Down
1 change: 1 addition & 0 deletions packages/primeng/src/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1385,6 +1385,7 @@ export class Select extends BaseComponent implements OnInit, AfterViewInit, Afte
}

ngAfterViewInit() {
super.ngAfterViewInit();
if (this.editable) {
this.updateEditableLabel();
}
Expand Down
1 change: 1 addition & 0 deletions packages/primeng/src/tabmenu/tabmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ export class TabMenu extends BaseComponent implements AfterViewInit, AfterConten
}

ngAfterViewInit(): void {
super.ngAfterViewInit();
if (isPlatformBrowser(this.platformId)) {
this.updateInkBar();
this.initAutoScrollForActiveItem();
Expand Down

0 comments on commit ac11d35

Please sign in to comment.