You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
When opening a page that is linked to a tab it isn't being selected.
Expected behavior:
When opening a page linked to a tab it should be selected (by default blue).
Steps to reproduce:
Start a new project: ionic start myApp tabs. Open tab1.page.html and remove the href's of the ion-item's. Open http://localhost:4200/tabs/tab1 (change the port accordingly) and the tab isn't selected (it was working before this change).
Another scenario, open tab2.page.html and add some component inside the <ion-content>, for example a <ion-spinner>. Open http://localhost:4200/tabs/tab2 and the tab isn't selected (it was working before this change).
Other information:
The two scenarios are really different, so I don't really know the cause of this bug.
Ionic info:
Ionic:
Ionic CLI : 5.2.0 (/home/tanoabeleyra/.config/yarn/global/node_modules/ionic)
Ionic Framework : @ionic/angular 4.6.0
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v11.14.0 (/home/tanoabeleyra/.nvm/versions/node/v11.14.0/bin/node)
npm : 6.7.0
OS : Linux 4.19
Done in 0.90s.
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.
Activity
fix(tabs): do not emit tab if selectedTab undefined
brandyscarney commentedon Jul 2, 2019
Thanks for the issue! Fixed by #18700. This will be in the
4.6.1release.ionitron-bot commentedon Aug 1, 2019
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.