0

Sandbox: https://codesandbox.io/s/react-nested-tooltip-9702e?file=/src/index.js

The tooltip shows up for the second Avatar, but not the first one. How can I get it to show up for the first one?

I would like to nest the tooltip component inside another, and I believe the issue lies somewhere in forwarding Refs, however I don't know where.

1 Answer 1

2

Wrap the icon with a span or div or may be p

<Tooltip title={displayText} placement="top">
  <span>
    <SupportingIcon />
  </span>
</Tooltip>

code

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.