From 842dd7642828117c58babb760dda6fc3a7f2ba50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Godoy?= Date: Thu, 27 Oct 2016 16:23:20 -0200 Subject: [PATCH] Passing the event object as $event --- contextMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contextMenu.js b/contextMenu.js index 0c8905d..c0c5dff 100644 --- a/contextMenu.js +++ b/contextMenu.js @@ -318,7 +318,7 @@ angular.module('ui.bootstrap.contextMenu', []) } $scope.$apply(function () { - var options = $scope.$eval(attrs.contextMenu); + var options = $scope.$eval(attrs.contextMenu, {$event: event}); var customClass = attrs.contextMenuClass; var modelValue = $scope.$eval(attrs.model); if (options instanceof Array) {