-
-
Notifications
You must be signed in to change notification settings - Fork 537
Open
Labels
BugHelp WantedV6It might get fixed/merged before, but most likely only on V6's release.It might get fixed/merged before, but most likely only on V6's release.
Description
Describe the bug
My React app is being rendered in a Shadow DOM, ReactTooltip isn't working. If I'm disabling the Shadow DOM mode, it's working as expected.
Version of Package
v5.13.1
To Reproduce
- App.tsx
import { Tooltip as ReactTooltip } from 'react-tooltip';
import { StyledDiv } from './styles';
export const App = () => {
return (
<StyledDiv>
<ReactTooltip
id={`my-tooltip`}
style={{ zIndex: 100, maxWidth: 300, fontSize: 13 }}
/>
</StyledDiv>
);
};
- index.tsx
const shadowRoot = document.body.attachShadow({ mode: 'open' });
// create a root inside the shadow
const root = ReactDOM.createRoot(shadowRoot);
// Render the new widget
root.render(<App />);
Expected behavior
Placeholder element should appear in the dom. Tooltips should work.
Desktop (please complete the following information if possible or delete this section):
- OS: MacOS
- Browser Chrome
- Version latest
- Frameworks React 18.2.0, Next.js 13.1.1
armetiz, andrucz, naggingant and HusamElbashir
Metadata
Metadata
Assignees
Labels
BugHelp WantedV6It might get fixed/merged before, but most likely only on V6's release.It might get fixed/merged before, but most likely only on V6's release.