diff --git a/js/angular/directive/itemOptionButton.js b/js/angular/directive/itemOptionButton.js index 758ed19b9d..1a7caa7b4c 100644 --- a/js/angular/directive/itemOptionButton.js +++ b/js/angular/directive/itemOptionButton.js @@ -41,6 +41,8 @@ return { itemCtrl.$element.append(itemCtrl.optionsContainer); } itemCtrl.optionsContainer.append($element); + + $element.on('click', eventStopPropagation); }; } }; diff --git a/js/angular/directive/ngClick.js b/js/angular/directive/ngClick.js index 756134ac85..c29ede8609 100644 --- a/js/angular/directive/ngClick.js +++ b/js/angular/directive/ngClick.js @@ -34,13 +34,13 @@ IonicModule }]) .directive('ionStopEvent', function () { - function stopEvent(e) { - e.stopPropagation(); - } return { restrict: 'A', link: function (scope, element, attr) { - element.bind(attr.ionStopEvent, stopEvent); + element.bind(attr.ionStopEvent, eventStopPropagation); } }; }); +function eventStopPropagation(e) { + e.stopPropagation(); +}