Skip to content

bug: ion-tabs selected state not working #18689

Closed

Description

@tanoabeleyra

Bug Report

Ionic version:
[x] 4.6

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.

localhost_8100_tabs_tab1(Galaxy S5)

Activity

  1. added a commit that references this issue on Jul 2, 2019
    e283504
  2. brandyscarney commented on Jul 2, 2019

    @brandyscarney
    Member

    Thanks for the issue! Fixed by #18700. This will be in the 4.6.1 release.

  3. ionitron-bot commented on Aug 1, 2019

    @ionitron-bot

    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.

  4. locked and limited conversation to collaborators on Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions