Merge pull request #13218 from maxunbearable/fix/6043-show-help-error

Fixed early updatePosition call to prevent CDK overlay crash in matSuffix context
This commit is contained in:
Igor Kulikov 2025-04-17 12:47:34 +03:00 committed by GitHub
commit 5497d65171
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -472,8 +472,10 @@ export class TbPopoverComponent<T = any> implements OnDestroy, OnInit {
set tbOverlayStyle(value: { [klass: string]: any }) { set tbOverlayStyle(value: { [klass: string]: any }) {
this._tbOverlayStyle = value; this._tbOverlayStyle = value;
if (this.popover) {
this.cdr.detectChanges(); this.cdr.detectChanges();
} }
}
get tbOverlayStyle(): { [klass: string]: any } { get tbOverlayStyle(): { [klass: string]: any } {
return this._tbOverlayStyle; return this._tbOverlayStyle;