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: double tap a tab then go to a global page, back button missing and swipe back broken #19943
Comments
I think this is the same issue as described here: #19455, you can find my workaround in the comments which works fine for me. Unfortunately the author already closed the issue. |
@DavidStrausz , keep in mind that the old window stack system (with the nav controller) is deprecated and will likely be removed in a future version |
I'm encountering the same issue. Double click on a tab will prevent the back button to display on the "next" page. :-( |
|
@ionic/angular@4.11.10 still be able to replicate, and it seems to be even worse now as one tap can also reveal it. Lol |
I can confirm this is still an issue in 5.4.11. Tapping 2 or more times on a tab-button breaks back button on the next navigation. Any fix/workaround for this? |
Yup, funny thing is that I cannot reproduce this using the Ionic Conference Starter, but with other apps. The only difference is in the way (angular) routing is set up. Haven't nailed it down yet, but something gets messed up when tapping a tab button while already being on the root page for the tab - on consecutive navigations within the tab, the previous component will be destroyed (ngOnDestroy called), and thus there is no back button available. we had to hard code back button hrefs because of that - still, the animation is messed up due to the routing issues. @liamdebeasi , we experience this bug since 4.x - any chance someone might take a look at this? |
As stated in #19455 , setting |
At least since Ionic 4 you shouldn't use the navController at all and use Angular Routing (if you use Angular) - the old nav controller is deprecated |
I guess this has something to do with the routing - together with componentless routes and redirects and/or the way navigation happens when tapping an already open tab with its root component being displayed. Lazy loaded routes and componentless modules seem to play a role here (with components being destroyed even though they shouldn't - breaking navigation) - I am able to work around this by moving some child routes into the tab routing module. |
Hi everyone, This looks to be the same issue as #21074. There is a dev build in #21074 (comment) if people are interested in testing a fix out (requires Ionic 5.0+). Thanks! |
Thanks for the issue. This has been resolved via #21085, and a fix will be available in an upcoming release of Ionic Framework. |
Is this also being ported to ionic 4? |
This fix will not be ported to Ionic 4. Ionic 4 is only receiving critical security fixes moving forward. |
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:
[x] 4.11.5
Current behavior:
using Angular router.navigate(), double-tap a tab then go to a global page, back button missing and swipe back broken
Expected behavior:
back button still appears, and swipe back gesture still working
Steps to reproduce:
1.run it
2.tap twice the tab
3.click the global page button
4.check the back button
Related code:
A sample application via GitHub
https://github.com/peterzhang41/ionicDoubleTapTabIssue
Other information:
our team has to use NavController instead
Ionic info:
Ionic:
The text was updated successfully, but these errors were encountered: