I am working on adding a drop down menu, but have a bug I am trying to fix. Currently, when I click on the icon, the drop down will work. However, when clicking on other buttons or other areas of the website, the drop down stays open. I want it to close... There is a lot of code in this project, so I have taken the parts that are creating the error. Any suggestions?
HTML:
<div class="fa fa-ellipsis-v action-icon" ng-class="{'selected': menuActions}" ng-click="dropDownMenu()"></div>
JavaScript:
// This function handles the ellipsis
$scope.dropDownMenu = function () {
$scope.myShareFeature = false;
$scope.mySignatureFeature = false;
$scope.menuActions = !$scope.menuActions;