- 
                Notifications
    
You must be signed in to change notification settings  - Fork 70
 
fix(eds-core-react): 🐛 Update Tooltip component to use mergeRefs #4130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(eds-core-react): 🐛 Update Tooltip component to use mergeRefs #4130
Conversation
| 
           👀  Currently debugging why CI won't use the updated snapshot as a ref for comparison.  | 
    
This fixes the warning related to accessing element.ref directly, which is no longer supported in React 19.
f55d5de    to
    ead6ee8      
    Compare
  
    | 
           This did the trick, now the snapshot test is passing in CI as well  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* fix(eds-core-react): 🐛 Update Tooltip component to use mergeRefs This fixes the warning related to accessing element.ref directly, which is no longer supported in React 19. * Add test to cover ref issue * chore: trigger CI rebuild after main branch migration * test: Use explicit ID in Tooltip snapshot test for consistency * Try to remove id to make snapshot deterministic * Fix prettier * resolve eslint errors in tooltip

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