Skip to content

Commit

Permalink
fix: 🐛 Fix Tooltip display behavior (#16886)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwadrox authored Dec 9, 2024
1 parent 5a4955f commit 65dfb15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/primeng/src/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ export class Tooltip extends BaseComponent implements AfterViewInit, OnDestroy {
else if (this.getOption('appendTo') === 'target') appendChild(this.container, this.el.nativeElement);
else appendChild(this.getOption('appendTo'), this.container);

this.container.style.display = 'inline-block';
this.container.style.display = 'none';

if (this.fitContent) {
this.container.style.width = 'fit-content';
Expand Down Expand Up @@ -458,9 +458,11 @@ export class Tooltip extends BaseComponent implements AfterViewInit, OnDestroy {

if (pDialogWrapper) {
setTimeout(() => {
this.container && (this.container.style.display = 'inline-block');
this.container && this.align();
}, 100);
} else {
this.container.style.display = 'inline-block';
this.align();
}

Expand Down

0 comments on commit 65dfb15

Please sign in to comment.