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.
Markos,
I seems like a bug, but here is the design route that esri suggests:
https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=popup-custom-a...
You just set the visibility of an action based on some criteria.