Skip to content

Conversation

pomfrida
Copy link
Collaborator

@pomfrida pomfrida commented Oct 21, 2025

While I was not able to reproduce the issue with the Tooltip not rendering or being misplaced as described in the original report, the changes made do address the React 19 compatibility warnings related to ref handling. Tooltip now properly handles refs on child components without triggering warnings, ensuring it works as expected in React 19 environments while maintaining its core functionality and behavior.

Resolves #4128

@pomfrida pomfrida linked an issue Oct 21, 2025 that may be closed by this pull request
@pomfrida pomfrida self-assigned this Oct 21, 2025
@pomfrida
Copy link
Collaborator Author

👀 Currently debugging why CI won't use the updated snapshot as a ref for comparison.
The snapshot is passing locally. If you want to test locally through my branch, please make sure you do a clean install first.

This fixes the warning related to accessing element.ref directly, which is no longer supported in React 19.
@pomfrida pomfrida force-pushed the 4128-tooltip-not-rendered-when-children-has-ref branch from f55d5de to ead6ee8 Compare October 21, 2025 14:25
@pomfrida
Copy link
Collaborator Author

pomfrida commented Oct 22, 2025

This did the trick, now the snapshot test is passing in CI as well

    // Remove the auto-generated ID to make snapshot deterministic
    tooltip.removeAttribute('id')

Copy link
Collaborator

@Chibuzor-Nwemambu Chibuzor-Nwemambu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Fantastic fix! 🎉 🚒

@pomfrida pomfrida merged commit a7f42ce into main Oct 22, 2025
10 checks passed
@pomfrida pomfrida deleted the 4128-tooltip-not-rendered-when-children-has-ref branch October 22, 2025 08:23
@github-actions github-actions bot mentioned this pull request Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tooltip not rendered when children has ref

2 participants