Popup closes and reopens due to click passing through overlay

Screen Recording 2026-01-31 at 7.35.45 p.m..mov

Hello! Hope everyone is doing well!

When a popup is open, it is closed by clicking on a gray background overlay.

However, if I click on an area where there is a clickable row/item underneath (the same element that opens the popup), the following happens:

-The click triggers the overlay → close popup

-The same click also passes through to the underlying row → open popup

-The popup then appears to close and immediately reopen (or flicker)

So because of this:

-Clicking on an empty area (with no clickable elements underneath) works correctly

-Clicking on an area where a row/item exists underneath causes the issue, since both elements receive the click

Any guidance would be appreciated. Thanks!