Closed
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
- Nightly
Current Behavior
When using nav.pop()
there is a couple of behaviors that are incorrect:
- The
leavingView
(the view being removed) is not unmounted/removed from the DOM. - The
enteringView
(the view to display) is not visible. TheenteringView
is being transitioned under another view in the stack.
Expected Behavior
When calling nav.pop()
, Nav should unmount/destroy the view that is being removed (the topmost view). Additionally, the next available view that I was just from, should display as the new topmost view.
Steps to Reproduce
- Open reproduction
- Click "Open Modal"
- Click "Go To Page Two"
- Click "Go To Page Three"
- Click "Go Back"
- Observe: Page One is displayed, expected Page Two to display.
- Observe:
page-one
,page-two
andpage-three
are all still in the DOM. Expected onlypage-one
andpage-two
. - Observe:
page-one
has a higherz-index
thanpage-two
. Expected thatpage-two
would have a higher z-index thanpage-one
.
Code Reproduction URL
https://stackblitz.com/edit/r1sn2g?file=index.html
Ionic Info
N/A
Additional Information
No response