Add collapseAutomatically property to hide menu when an action menu item is clicked.