showMenuAsync() does not hide when clicked outside

I’m working on a plugin that uses popup menus and as recommended I am using showMenuAsync() to run the menus. However, I noticed that the menu does not hide if I click somewhere off the menu that is not on the plugin or another app (ie: anywhere on the DAW itself). Is there a way that I can change this behaviour? It seems weird that clicking somewhere off the menu would not hide the menu. Since it does not hide it also means that it often gets in the way of other windows or tasks that a user may be using in the DAW. Does anyone have a suggestion on how I can correct this behaviour in my plugin? Thanks in advance!