Skip to content

Commit

Permalink
Merge pull request #13747 from Feher-Zsofia/patch-2
Browse files Browse the repository at this point in the history
Fix for #13746, tabview style changes are not immediately registered
  • Loading branch information
cetincakiroglu committed Sep 26, 2023
2 parents 7f78f00 + a73867b commit b7698dd
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/app/components/tabview/tabview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,24 @@ export class TabPanel implements AfterContentInit, OnDestroy {
* Inline style of the tab header.
* @group Props
*/
@Input() headerStyle: { [klass: string]: any } | null | undefined;
@Input() get headerStyle(): { [klass: string]: any } | null | undefined {
return this._headerStyle;
}
set headerStyle(headerStyle: { [klass: string]: any } | null | undefined) {
this._headerStyle = headerStyle;
this.tabView.cd.markForCheck();
}
/**
* Style class of the tab header.
* @group Props
*/
@Input() headerStyleClass: string | undefined;
@Input() get headerStyleClass(): string | undefined {
return this._headerStyleClass;
}
set headerStyleClass(headerStyleClass: string | undefined) {
this._headerStyleClass = headerStyleClass;
this.tabView.cd.markForCheck();
}
/**
* Whether a lazy loaded panel should avoid getting loaded again on reselection.
* @group Props
Expand Down Expand Up @@ -180,6 +192,10 @@ export class TabPanel implements AfterContentInit, OnDestroy {
closed: boolean = false;

view: EmbeddedViewRef<any> | null = null;

_headerStyle: { [klass: string]: any } | null | undefined;

_headerStyleClass: string | undefined;

_selected: boolean | undefined;

Expand Down

1 comment on commit b7698dd

@vercel
Copy link

@vercel vercel bot commented on b7698dd Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.