You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the latest version (0.34.1) of big design, using a Text or Badge component no longer works as a trigger for the Tooltip. I upgraded from 0.30.2 which worked fine. However, 0.34.1 now returns the below warning and no tooltip is displayed.
_vendor.js:183048 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of `Reference`._
To reproduce the bug, use the Text or Badge component as the trigger:
<Tooltip placement='auto' trigger={<Text>Hello</Text>}>
HELLO FROM TOOLTIP
</Tooltip>
I would expect no error and the tooltip to show as it previously did.
However, using a Text as a trigger resolves the warning and displays the tooltip.
The text was updated successfully, but these errors were encountered:
On the surface, it looks like we just need to forward the ref to our Text component.
I upgraded from 0.30.2 which worked fine.
This sounds like a transient dependency caused it to break. I tried to replicate this in a CodeSandbox and was still getting the same issue in 0.30.2 🤔 If you could replicate it working in a CodeSandbox, that'd be super helpful to understand the underlying issue of why it was working before 🙏
Same issue here using a Badge or Text component as the trigger.
Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of `Reference`.
Badge@http://localhost:2000/static/js/bundle.js:29870:11
On the latest version (0.34.1) of big design, using a Text or Badge component no longer works as a trigger for the Tooltip. I upgraded from 0.30.2 which worked fine. However, 0.34.1 now returns the below warning and no tooltip is displayed.
To reproduce the bug, use the Text or Badge component as the trigger:
I would expect no error and the tooltip to show as it previously did.
However, using a Text as a trigger resolves the warning and displays the tooltip.
The text was updated successfully, but these errors were encountered: