From 5ee6bf1db87d012a898fd50dc1cc8e9f1c2d36ef Mon Sep 17 00:00:00 2001 From: joseph rosenthal Date: Wed, 22 May 2024 05:05:27 -0400 Subject: [PATCH] use this.el.nativeElement if not a PrimeNG component --- src/app/components/tooltip/tooltip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/tooltip/tooltip.ts b/src/app/components/tooltip/tooltip.ts index e95e2a7a3e0..3cd1f816ace 100755 --- a/src/app/components/tooltip/tooltip.ts +++ b/src/app/components/tooltip/tooltip.ts @@ -560,7 +560,7 @@ export class Tooltip implements AfterViewInit, OnDestroy { } private get activeElement(): HTMLElement { - return this.el.nativeElement.nodeName.includes('P-') ? DomHandler.findSingle(this.el.nativeElement, '.p-component') : this.el.nativeElement; + return this.el.nativeElement.nodeName.includes('P-') ? DomHandler.findSingle(this.el.nativeElement, '.p-component') || this.el.nativeElement : this.el.nativeElement; } alignLeft() {