We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 634b397 commit a845ff3Copy full SHA for a845ff3
js/angular/directive/itemOptionButton.js
@@ -41,6 +41,8 @@ return {
41
itemCtrl.$element.append(itemCtrl.optionsContainer);
42
}
43
itemCtrl.optionsContainer.append($element);
44
+
45
+ $element.on('click', eventStopPropagation);
46
};
47
48
js/angular/directive/ngClick.js
@@ -34,13 +34,13 @@ IonicModule
34
}])
35
36
.directive('ionStopEvent', function () {
37
- function stopEvent(e) {
38
- e.stopPropagation();
39
- }
40
return {
restrict: 'A',
link: function (scope, element, attr) {
- element.bind(attr.ionStopEvent, stopEvent);
+ element.bind(attr.ionStopEvent, eventStopPropagation);
});
+function eventStopPropagation(e) {
+ e.stopPropagation();
+}
0 commit comments