bug: angular outer tabs receive tab button click events for nested tabs
See original GitHub issuePrequisites
- 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
Current Behavior
I have the following page setup:
- Base Page (Ion Tabs)
- Page 1 (Ion Tabs)
- Page 1.1
- Page 1.2
- Page 1.3
- Page 2
- Page 3
The i use nested tabs. This works in general, but i get an error when i change on of the inner tabs:
Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: '...'
I debugged a bit and found that the select()
function of the IonTabs is called two times, one for each Tabs, i can see that on the outlet.
Expected Behavior
The IonTabs should only executed the select
method for Tabs belongs to this.
Steps to Reproduce
See page structure above
Code Reproduction URL
No response
Ionic Info
No response
Additional Information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
angular outer tabs receive tab button click events for nested ...
I debugged a bit and found that the select() function of the IonTabs is called two times, one for each Tabs, i can...
Read more >Angular2 Router in nested tabs does not trigger active class ...
When navigating between parent tabs the child tab loses active class state. First time view is rendered the tab has the class active...
Read more >Issue with Tabs inside Tabs - Forums - jQWidgets
Hi,. I'm facing an issue when I place a tab control inside another tab control. I want subscribe to 'selected' event of the...
Read more >Ionic 4 - Nested Tabs Relative Routes
I can only get the nested tabs to work by using “[routerLink]” as when I just use ... <ion-tab-button (click)="clickTab($event, 'external')" ...
Read more >Tabs - Angular Material
Properties ; scrollDistance: number. Sets the distance in pixels that the tab header should be transformed in the X-axis. ; selectFocusedIndex: EventEmitter< ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?
Thanks for the issue. This has been resolved via https://github.com/ionic-team/ionic-framework/pull/23902, and a fix will be available in an upcoming release of Ionic Framework.