We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edb62c2 commit 0421596Copy full SHA for 0421596
js/angular/directive/itemDeleteButton.js
@@ -31,6 +31,11 @@ var ITEM_TPL_DELETE_BUTTON =
31
*/
32
IonicModule
33
.directive('ionDeleteButton', function() {
34
+
35
+ function stopPropagation(ev) {
36
+ ev.stopPropagation();
37
+ }
38
39
return {
40
restrict: 'E',
41
require: ['^^ionItem', '^?ionList'],
@@ -48,6 +53,9 @@ IonicModule
48
53
container.append($element);
49
54
itemCtrl.$element.append(container).addClass('item-left-editable');
50
55
56
+ //Don't bubble click up to main .item
57
+ $element.on('click', stopPropagation);
58
51
59
init();
52
60
$scope.$on('$ionic.reconnectScope', init);
61
function init() {
0 commit comments