Skip to content

Commit b9ebeff

Browse files
committed
fix(tooltip): mark tooltip as dirty when changing its role
1 parent 5929899 commit b9ebeff

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

projects/igniteui-angular/directives/src/directives/tooltip/tooltip-target.directive.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,9 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen
689689
this._renderer.appendChild(this.target.element, this._closeButtonRef.location.nativeElement);
690690
this._closeButtonRef.changeDetectorRef.detectChanges();
691691
this.target.role = "status"
692+
// Mark the tooltip directive as Dirty to ensure that
693+
// the CD refreshes the bindings
694+
this.target.cdr?.markForCheck();
692695
}
693696
}
694697

@@ -700,6 +703,9 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen
700703
this._renderer.removeChild(this.target.element, this._closeButtonRef.location.nativeElement);
701704
this._closeButtonRef.changeDetectorRef.detectChanges();
702705
this.target.role = "tooltip"
706+
// Mark the tooltip directive as Dirty to ensure that
707+
// the CD refreshes the bindings
708+
this.target.cdr?.markForCheck();
703709
}
704710
}
705711

0 commit comments

Comments
 (0)