-
Notifications
You must be signed in to change notification settings - Fork 13.5k
bug: react, vue back button does not select correct view when going back from a tabs instance #23101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Maybe related to my issue #23087 |
Took another look at this. I think this has something to do with putting a |
Thanks, I will take a closer look at this. I need to see if using |
I can confirm this is a bug in both Ionic Vue and Ionic React. I will look into a fix. |
Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?
|
dear @liamdebeasi I tried your dev built but I'm encountering the issue described here: #23141 |
@liamdebeasi Just did a dev build on my project. all is working fine now :) Thank you ! |
Thanks for the issue. This has been resolved via #23154, and a fix will be available in an upcoming release of Ionic Framework. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic version:
[ ] 4.x
[x] 5.6.3 (Latest)
Current behavior:
I have an ionic-vue app that uses vue-router and the tabs template.
When I navigate to a nest tabs, and switch to tab2 and switch back to tab1.
When I click on ion-back-button it show error Cannot read property 'ionPageElement' of undefined
Expected behavior:
I would expect that switch back to parent tabs
Steps to reproduce:
Make a ionic-vue app using the tabs template
Add a sub route to one of the tabs (i.e. tab1) (make sure this view has the ion-back-button active in the ion-toolbar)
Enter the sub route (of tab1)
Switch to another tab (i.e. tab2) from this sub route
Switch back to the tab that has the sub route active (i.e. tab1)
Press the back button in this sub route
The back button causes the view to return to the parent view of this tab (tab1 in this case, which I would expect) but the url switches back to the other tab (tab2)
GIF Image ( Steps to reproduce )
Related code:
https://codesandbox.io/s/magical-snow-w7xok
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: