Skip to content
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: use forwardRef for tooltip component #458

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

gndz07
Copy link
Member

@gndz07 gndz07 commented Jan 6, 2025

Description

Fixes https://github.com/traefik/hub-issues/issues/1545.

This PR fix the Tooltip component, to use React.forwardRef instead of a function component. This should fix the recurring issue where we have to wrap components inside a Box/Flex to make the tooltip works correctly and remove the console error raised every time we hover over tooltip components.

Also fixes #273.

Preview

No visual change.

Dependency changes

Dependency Version State
@radix-ui/react-tooltip 1.0.7 -> 1.1.6 Updated

How to test?

Try the tooltip on the storybook. Make sure that no warning is raised on the console on hovering the component.

Copy link
Contributor

@mdeliatf mdeliatf left a comment

Choose a reason for hiding this comment

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

LGTM!

@traefiker traefiker merged commit 8b4a072 into traefik:master Jan 7, 2025
5 checks passed
@traefiker
Copy link
Contributor

🎉 This PR is included in version 11.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tooltip seems not to work with a Bubble
3 participants