I have a modal set up like the docs recommend
$scope.showConfirm = function() {
var confirmPopup = $ionicPopup.confirm({
title: 'Consume Ice Cream',
template: 'Are you sure you want to eat this ice cream?'
});
confirmPopup.then(function(res) {
if(res) {
console.log('You are sure');
} else {
console.log('You are not sure');
}
});
};
When I dismiss the modal, the select box and or input field directly below the cancel button is getting focus as if the event is getting triggered ‘through’ the button. I tried using preventDefault(), stopPropogation and even disabling the fields while the popup is shown and nothing seems to work.
Any idea why this is happening?
Thanks,
Jay