Skip to content

Commit 5701894

Browse files
committed
Fix propagation errors
1 parent 26d4382 commit 5701894

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

apps/trolls_goals/public/js/crud_tooltip.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,10 @@ angular.module('crudTooltip', [ 'ui.bootstrap.position' ])
377377
trigger.triggerHandler('click');
378378
});
379379
$event.stopPropagation();
380-
}
380+
};
381+
element.bind('click', function($event) {
382+
$event.stopPropagation();
383+
});
381384
}
382385
};
383386
})

apps/trolls_goals/public/js/directives.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ directivesModule.directive('ngEnter', function () {
4747
element.bind('keydown keypress', function(e) {
4848
if (e.which === 13) {
4949
scope.$apply(function () {
50-
scope.$eval(attrs.ngEnter);
50+
scope.$eval(attrs.ngEnter, { $event: e });
5151
});
5252

5353
e.preventDefault();
@@ -61,7 +61,7 @@ directivesModule.directive('ngCtrlDelete', function () {
6161
element.bind('keydown keypress', function(e) {
6262
if (e.which === 46 && e.ctrlKey) {
6363
scope.$apply(function () {
64-
scope.$eval(attrs.ngCtrlDelete);
64+
scope.$eval(attrs.ngCtrlDelete, { $event: e });
6565
});
6666

6767
e.preventDefault();
@@ -75,7 +75,7 @@ directivesModule.directive('ngEscape', function () {
7575
element.bind('keydown keypress', function(e) {
7676
if (e.which === 27) {
7777
scope.$apply(function () {
78-
scope.$eval(attrs.ngEscape);
78+
scope.$eval(attrs.ngEscape, { $event: e });
7979
});
8080

8181
e.preventDefault();

0 commit comments

Comments
 (0)