MDL-42810 ActionMenu: Hide the ActionMenu when clicking on primary links