Dropdown menu does not close when clicked outside iframe

Hi, community.
I have a Dropdown(Atlaskit React component) menu inside the iframe. When menu is open and user clicked inside iframe - the menu is closed. But when menu is open and the user clicked outside iframe menu does not close.
How to fix it?