Just from following the tutorials/documentation, I’m noticing that the $ionicModal is producing multiple div class=“modal-backdrop hide”> in the DOM. Was this intentional?
Here’s an example:
$ionicModal
.fromTemplateUrl('modal.html', {
scope: $scope
})
.then(function(modal) {
$scope.modal = modal;
$scope.modal.show();
});
Triggering that multiple times and closing each time produces a new DOM element. Even if you do a $scope.modal.remove() on $destroy, it doesn’t help with the situation. Would I need to collect all the modals produced and have them remove() on $destroy? I feel like this should be a given with this framework.