Fix tooltip rendering in wrong position on first mount

This commit is contained in:
Luke Vella 2022-04-16 10:05:40 +01:00
parent a48d75f45d
commit c1a3394a93
3 changed files with 15 additions and 8 deletions

View file

@ -91,7 +91,7 @@ const Tooltip: React.VoidFunctionComponent<TooltipProps> = ({
>
{children}
</div>
{portal && debouncedValue
{portal
? ReactDOM.createPortal(
<div
ref={setPopperElement}