Swipe: Clicking options button clicks item instead


#1

I have a side menu app (v1.0.0-beta.1) with swipable options. When loaded on to my Android or iOS device, swiping works fine. However, tapping the Edit (options) Button triggers a click on the item and not the Edit Button.

html:

<ion-list can-swipe="true" option-buttons="itemButtons">    
    <ion-item class="item nav-item" can-swipe="true" ng-repeat="org in orgs" item="org" ng-click="setOrg(org.org, org.sessionID)">
        {{org.org}}
    </ion-item>
</ion-list>

js:

//Swipable buttons
$scope.itemButtons = [
 {
     text: 'Edit',
     type: 'button-assertive',
     onTap: function (org) {
         $scope.editOrg(org.sessionID);
     }
 }
];

$scope.editOrg = function(sessionID){
    $ionicModal.fromTemplateUrl('templates/editOrgModal.html', {
        scope: $scope,
        animation: 'slide-in-up'
    }).then(function(modal) {
        $scope.modal = modal;
        $scope.modal.show();
    });
}