Dynamic Tooltip rendering wrong
I'm submitting a ... (check one with "x")
[X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35
Plunkr Case (Bug Reports) https://github-yibmjy.stackblitz.io (https://stackblitz.com/edit/github-yibmjy)
Current behavior When changing dynamically the Tooltip text to one with a different size, it doesn't render correctly. The Tooltip size is correctly re-calculated but not it's position.
Expected behavior When changing dynamically the Tooltip text to one with a different size, it should recalculate the Tooltip position correctly.
Minimal reproduction of the problem with instructions
- Open the case (https://github-yibmjy.stackblitz.io)
- Get focus to the input field. (Notice the Tooltip at this point).
- Start typing. (Tooltip will change the message, change size and get in a wrong position)
What is the motivation / use case for changing the behavior? There is some cases we need to change the Tooltip text dynamically and it's rendering in a wrong position making the user experience bad.
- Angular version: 8.X
- PrimeNG version: 8.X
Fixed in https://github.com/primefaces/primeng/commit/12ccdd84c9ff0e70f7fb9f23598bb00900acb1ea