When popup template actions are invisible, the menu is still shown with no menu items. I do not want to show menu if it does not have any menu item.
I have attached a sample code.
I seems like a bug, but here is the design route that esri suggests:
You just set the visibility of an action based on some criteria.
Retrieving data ...