I'm using $ionicActionSheet
and underneath it (before it's opened) there is textarea. When the user clicks the button in the $ionicActionSheet
it also brings focus to the <textarea>
below and opens the keyboard. Is there any way to stop the click propagation in the $ionicActionSheet
?
$ionicActionSheet.show({
buttons: [{
text: 'Camera'
}, {
text: 'Photo Library'
}],
destructiveText: 'Cancel',
destructiveButtonClicked: function() {
//
// How do I get access to the click event?
$event.stopPropagation();
//
//
return true;
},
buttonClicked: function(index) {
//
// How do I get access to the click event?
$event.stopPropagation();
//
//
if(index == 0) {
$scope.TakePicture("camera");
} else {
$scope.TakePicture("library");
}
return true;
}
});