Skip to content

Commit

Permalink
use this.el.nativeElement if not a PrimeNG component
Browse files Browse the repository at this point in the history
  • Loading branch information
rosenthalj committed May 22, 2024
1 parent 3d5b78e commit 5ee6bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 5ee6bf1

Please sign in to comment.