Hi there,
I recently updated from beta 11 to 13 and noticed a problem with a popup stack in my application: the app runs through the popups just fine, but the backdrop isn’t removed from the DOM after dismissing the final popup.
My code is as follows:
$scope.completeProfile = function() {
$scope.gotCoupon = $ionicPopup.show({
templateUrl: './partials/popups/gotcode.html',
title: 'Have you got a coupon to redeem?',
scope: $scope
});
$scope.titleSelect = $ionicPopup.show({
templateUrl: './partials/popups/titleSelect.html',
title: 'Please select your title',
scope: $scope,
buttons: [
{
text: '<i class="check-icon-empty"></i>',
type: 'circle-ok',
onTap: function(e) {
if (!$scope.profile.title) {
e.preventDefault();
} else {
return $scope.profile.title;
}
}
},
]
}).then(function(res) {
$scope.updateProfile();
});
$scope.nameSelect = $ionicPopup.show({
templateUrl: './partials/popups/nameSelect.html',
title: 'Welcome!',
subTitle: 'Please help us complete your profile',
scope: $scope,
buttons: [
{
text: '<i class="check-icon-empty"></i>',
type: 'circle-ok',
onTap: function(e) {
if (!$scope.profile.name) {
e.preventDefault();
} else {
return $scope.profile.name;
}
}
},
]
});
};
In the betas before 12/13 this used to work just fine. I believe some changes were made to the way the backdrop is being used? Not sure if I’m using the popups in a way they weren’t intended to be used… Hope you guys have ideas on how to make this work again!
Thanks a bunch!
Max