### Describe the bug When using appendTo option of tooltip with htmlElement, the position of it is completely omitted (see https://github.com/primefaces/primeng/blob/master/packages/primeng/src/tooltip/tooltip.ts#L617), which results in tooltip in incorrect place. Currently the only option is to set positionLeft (see https://github.com/primefaces/primeng/blob/master/packages/primeng/src/tooltip/tooltip.ts#L701) or positionTop (see https://github.com/primefaces/primeng/blob/master/packages/primeng/src/tooltip/tooltip.ts#L702), but it would require constant update of the value when element's position changes. It would be better to have an option to at least specify a callback which is executed on getHostOffset (like primeng is doing for body https://github.com/primefaces/primeng/blob/master/packages/primeng/src/tooltip/tooltip.ts#L618). ### Pull Request Link _No response_ ### Reason for not contributing a PR - [x] Lack of time - [ ] Unsure how to implement the fix/feature - [ ] Difficulty understanding the codebase - [ ] Other ### Other Reason _No response_ ### Reproducer https://stackblitz.com/edit/github-looscpmc?file=src%2Fapp%2Fapp.component.html ### Environment stackblitz ### Angular version 21 ### PrimeNG version v21 ### Node version _No response_ ### Browser(s) _No response_ ### Steps to reproduce the behavior Open stackblitz page with tooltip usage ### Expected behavior Its possible to offset tooltip correctly with custom appendTo.
Describe the bug
When using appendTo option of tooltip with htmlElement, the position of it is completely omitted (see https://github.com/primefaces/primeng/blob/master/packages/primeng/src/tooltip/tooltip.ts#L617), which results in tooltip in incorrect place.
Currently the only option is to set positionLeft (see https://github.com/primefaces/primeng/blob/master/packages/primeng/src/tooltip/tooltip.ts#L701) or positionTop (see https://github.com/primefaces/primeng/blob/master/packages/primeng/src/tooltip/tooltip.ts#L702), but it would require constant update of the value when element's position changes. It would be better to have an option to at least specify a callback which is executed on getHostOffset (like primeng is doing for body https://github.com/primefaces/primeng/blob/master/packages/primeng/src/tooltip/tooltip.ts#L618).
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/github-looscpmc?file=src%2Fapp%2Fapp.component.html
Environment
stackblitz
Angular version
21
PrimeNG version
v21
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
Open stackblitz page with tooltip usage
Expected behavior
Its possible to offset tooltip correctly with custom appendTo.