The `anchorEl` prop provided to the component is invalid. The anchor element should be part of the document layout
I am using the menu inside the DataGridPro. I am showing the three dots button for hovered row. When I am clicking on the button, menu is opening left side of the screen. And throwing the above error.