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: angular outer tabs receive tab button click events for nested tabs

See original GitHub issue

Prequisites

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:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
liamdebeasicommented, Sep 8, 2021

Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?

npm install @ionic/angular@5.8.0-dev.202109082139.16dc6d4
1reaction
liamdebeasicommented, Sep 9, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

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