Sticky element makes popover content not close

I am using a MudTable with freeze first 3 columns (with sticky position). The first column has a MudMenu. When I click on the menu, a modal (or popover content) appears with an overlay. The problem is the modal won’t disappear when I click on the first three columns (region with sticky position). It makes same modal appears multiple times when I click on other menu.

I tried to change the z-index of all elements but it didn’t work.

This seems a common problem with sticky elements and overlay.

enter image description here