Skip to content

Commit

Permalink
Fixed #15545 - Tooltip visual issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed May 14, 2024
1 parent e3925bf commit f37f8e8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/app/components/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,16 @@ export class Tooltip implements AfterViewInit, OnDestroy {

this.create();

setTimeout(() => {
this.container && this.align();
}, 100);
const nativeElement = this.el.nativeElement;
const pDialogWrapper = nativeElement.closest('p-dialog');

if (pDialogWrapper) {
setTimeout(() => {
this.container && this.align();
}, 100);
} else {
this.align();
}

DomHandler.fadeIn(this.container, 250);

Expand Down

0 comments on commit f37f8e8

Please sign in to comment.