Skip to content

Commit 6101d4b

Browse files
zittixmhartington
authored andcommitted
fix(popup): make popups play nice with other async popups
Closes #4118
1 parent 4e9f875 commit 6101d4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: js/angular/service/popup.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,8 @@ function($ionicTemplateLoader, $ionicBackdrop, $q, $timeout, $rootScope, $ionicB
403403
popupStack.splice(index, 1);
404404
}
405405

406+
popup.remove();
407+
406408
if (popupStack.length > 0) {
407409
popupStack[popupStack.length - 1].show();
408410
} else {
@@ -418,7 +420,6 @@ function($ionicTemplateLoader, $ionicBackdrop, $q, $timeout, $rootScope, $ionicB
418420
($ionicPopup._backButtonActionDone || noop)();
419421
}
420422

421-
popup.remove();
422423

423424
return result;
424425
});

0 commit comments

Comments
 (0)