question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: vue, tapping tab to go to root no longer works as expected

See original GitHub issue

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

When I navigate inside a tab, I can’t return to the first level of the current tab with the tab button.

It happens when I use the mode="ios" on the <ion-router-outlet> and the swipe back gesture.

I have no errors in the DevTools console.

Expected Behavior

Be able to return to the first level of the current tab when I click on the tab button.

Steps to Reproduce

1 - Go to the localhost, I’m on the Tab 1 (url: /tabs/tab1) 2 - Click on “Level 1” button (url: /tabs/tab1/level1) 3 - Click on “Level 2” button (url: /tabs/tab1/level1/level2) 3 - Swipe back (url: /tabs/tab1/level1) 4 - Click on tab button “Tab 1” (url: /tabs/tab1 but I’m always on tab 1 level 1)

A small video to show the steps: https://user-images.githubusercontent.com/1482715/158198427-b028dee5-c63d-45f7-a33d-f648efb7555b.mov

Code Reproduction URL

https://github.com/MimyyK/ionic-tabs-issue

Ionic Info

Ionic:

Ionic CLI : 6.18.2 (/usr/local/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/vue 6.0.11

Capacitor:

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

Utility:

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

System:

NodeJS : v16.13.0 (/usr/local/bin/node) npm : 8.5.3 OS : macOS Monterey

Additional Information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
liamdebeasicommented, Mar 14, 2022

Thanks for the issue. This has been resolved via https://github.com/ionic-team/ionic-framework/pull/24935, and a fix will be available in an upcoming release of Ionic Framework.

1reaction
MimyyKcommented, Mar 14, 2022

Yes I understand and I will open another issue. Thank you for this fix and the reactivity !

Read more comments on GitHub >

github_iconTop Results From Across the Web

SwiftUI: Pop to root view when selected tab is tapped again
Here is possible approach. For TabView it gives the same behaviour as tapping to the another tab and back, so gives persistent look...
Read more >
Ion-back-button not showing and not working - Ionic Forum
Hello, All, I am facing an unknown issue in ionic5/capacitor/angular project. it's just that component doesn't show if defaultHref is empty.
Read more >
Vue + TypeScript & Debuggers - ckh|Consulting
Configuring debuggers to work with Vue + TypeScript is not easy. ... Open Chrome's developer tools, and navigate to the Sources tab.
Read more >
1006786 - Harassment and signal squelchening Description
Ive HAD EMERGENCY CALLS GO. UNANSWERED DUE TO HER HACKING. She can actually look into a person mind and read it like. BINERY...
Read more >
End-to-End Testing with Cypress and Auth0
This blog post is no longer maintained and it may be out of date ... You are also expected to have an Auth0...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found