Tooltip renders behind content after switching tabs

If you change the active tab while a tooltip is being rendered, it can sometimes occur that it is rendered behind the actual content.

Image

https://github.com/user-attachments/assets/a77ecaca-7d23-4549-91ed-e45f265c09b8