equinor / design-system

The Equinor design system
MIT License
119 stars 64 forks source link

Hovering over a cell in our AGGrid in UDD causes an error #3609

Closed daniel-aasheim closed 1 month ago

daniel-aasheim commented 2 months ago

Describe the bug

A clear and concise description of what the bug is. image

Steps to reproduce the bug

1. 2. 3. 4.

Expected behavior image

A clear and concise description of what you expected to happen.

Specifications

Additional context

oddvernes commented 2 months ago

Literally the only search result on google for "invalid on disconnected popover" is the chromium source code where it is defined

chromium

Image

I am wondering if !isConnected() here means the element is not yet attached to the dom... I am using useLayoutEffect to call showPopover() when open is true, but perhaps I should have used useEffect instead 🤔

Unfortunately I have not yet been able to reproduce this error locally but I will try more later