mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-30 01:06:22 +02:00
Fix tooltip rendering in wrong position on first mount
This commit is contained in:
parent
a48d75f45d
commit
c1a3394a93
3 changed files with 15 additions and 8 deletions
|
@ -91,7 +91,7 @@ const Tooltip: React.VoidFunctionComponent<TooltipProps> = ({
|
|||
>
|
||||
{children}
|
||||
</div>
|
||||
{portal && debouncedValue
|
||||
{portal
|
||||
? ReactDOM.createPortal(
|
||||
<div
|
||||
ref={setPopperElement}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue