Skip to content

Commit

Permalink
Merge pull request primefaces#15654 from rosenthalj/tooltipCustomComp…
Browse files Browse the repository at this point in the history
…onentIssue

fixed primefaces#15648 - fixed tooltip for custom component
  • Loading branch information
cetincakiroglu authored May 30, 2024
2 parents 0cb6fc2 + 5ee6bf1 commit 5561cd8
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 5561cd8

Please sign in to comment.