Skip to content
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

bug: vue, back button shows wrong view after tapping tab button to navigate to root of tab #27337

Open
3 tasks done
twestbrook09 opened this issue Apr 28, 2023 · 0 comments
Open
3 tasks done
Labels
package: vue @ionic/vue package type: bug a confirmed bug report

Comments

@twestbrook09
Copy link

twestbrook09 commented Apr 28, 2023

Prerequisites

Ionic Framework Version

v6.x
v7.x

Current Behavior

After using the ion-back-button to navigate back once, tapping the active tab to navigate back to the tab page seems to cause the tab to adopt the same behavior as ion-back-button but breaks navigation.

Expected Behavior

When clicking the active tab button, navigate back to the tab page of that tab's nav stack.

Steps to Reproduce

  1. Have tab 1 active
  2. Click button on each page to navigate as so: Page1 -> Page2 -> Page 3
  3. On Page 3, click back button to navigate back to Page 2.
  4. On Page 2, click the active tab button at the bottom of the screen. It will navigate to Page 1 instead of the Tab1 Page.
  5. Click active tab button again and the app will crash.

Code Reproduction URL

https://github.com/twestbrook09/ionic-vue-nav-bug

Ionic Info

Ionic:

Ionic CLI : 7.0.1 (/home/twest/.nvm/versions/node/v18.16.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 7.0.4

Capacitor:

Capacitor CLI : 4.8.0
@capacitor/android : not installed
@capacitor/core : 4.8.0
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 1.7.2

System:

NodeJS : v18.16.0
npm : 9.5.1
OS : Linux 5.15

Additional Information

If ion-back-button is not used, the tab button works as intended. If there's only 2 pages on the navigation stack, it works as intended since the tab button only has one other page to possibly navigate back to which is its intended page.

Hopefully this makes sense.

@ionitron-bot ionitron-bot bot added the triage label Apr 28, 2023
@liamdebeasi liamdebeasi changed the title bug: ion-back-button causes app to "restart" when navigating with tabs bug: vue, back button shows wrong view after tapping tab button to navigate to root of tab May 8, 2023
@liamdebeasi liamdebeasi added package: vue @ionic/vue package type: bug a confirmed bug report labels May 8, 2023
@ionitron-bot ionitron-bot bot removed the triage label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: vue @ionic/vue package type: bug a confirmed bug report
Projects
None yet
Development

No branches or pull requests

2 participants