-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Description
Type: bug
Platform: all
In ionic 1.1 you have added !$ionicModal.stack.isHighest(self) condition to self.remove function.
if (self.removed) return; ---> if (self.removed || !$ionicModal.stack.isHighest(self)) return;
I run into a problem when I open a popup from click on another popup.
When first popup is opened:
- the self.show function is called and object is added to the $ionicModal.stack.
When second popup is opened from click on the first popup: - first popup self.hide is called and object is removed from $ionicModal.stack.
- second popup self.show is called and object is added to the $ionicModal.stack.
When popup.close() is called on the second popup: - first popup self.show is called and object is added to the $ionicModal.stack.
- second popup self.remove is called, but is returned, because $ionicModal.stack.isHighest(self) === false (first popup is the highest object on the stack)
I am not sure if i am somehow misusing it or it is a bug!?
Metadata
Metadata
Assignees
Labels
No labels