Returning true from the listener to stop preventing document's clicks

The document click listener method returns false becase $scope.hide() method returns it's last expression which evaluates to 'false'. Returning true fixes the problem.