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:
		
						commit
						5497d65171
					
				@ -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;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user