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

Is it possible to do nested tabs? #396

Closed
aditbharadwaj opened this issue Oct 20, 2019 · 2 comments
Closed

Is it possible to do nested tabs? #396

aditbharadwaj opened this issue Oct 20, 2019 · 2 comments

Comments

@aditbharadwaj
Copy link

aditbharadwaj commented Oct 20, 2019

Well iam using super tabs as base navigation but as u can see in this pic i place two more tabs inside one ? and their routing component is different but when i press the inside tabs they navigate to the main app tab navigation why is that ? the page is navigated to the called page but it also takes me to home page of my base navigation
123

@ihadeed
Copy link
Member

ihadeed commented Nov 6, 2019

This is probably due to the querySelectorAll calls that super tabs uses. The selectors aren't restricted to direct children and they're picking up events from the nested tabs.

Generally speaking having nested tabs isn't a good idea since it can confuse both the user and the web view. There shouldn't be more than one element that can be swiped. Consider using normal tabs for one of the views and super tabs for the other.

@aditbharadwaj
Copy link
Author

aditbharadwaj commented Nov 12, 2019

Well this issue is close but i found a way to do nested tabs but also making use of super tabs , i used **ion-segment and *ngif ** to make a nested tab inside the super tab component loaded and it works flawlessly .

Just updating this thread may it help some one in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants