react-tooltip icon indicating copy to clipboard operation
react-tooltip copied to clipboard

The tooltip doesn't work when using createPortal

Open shaharsa opened this issue 4 years ago • 0 comments

Hi,

When rendering the tooltip within createPortal, it doesn't function as expected. Portals - React

import { createPortal } from 'react-dom';

The mouse/click event doesn't work and doesn't toggle the show class. In addition, the data-tip attribute isn't being reflected in the component itself.

When I use it outside the Portal, it works as expected.

shaharsa avatar Aug 19 '21 07:08 shaharsa