Stop propagating click events in the ionic $ ionicActionSheet framework?
I use $ionicActionSheet
and under it (before opening it) there is a textarea. When the user presses the button in $ionicActionSheet
, he also focuses on the <textarea>
below and opens the keyboard. Is there a way to stop clicks from spreading $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;
}
});
+3
source to share
No one has answered this question yet
Check out similar questions: