Skip to content

bug: IonTabButton1 href doesn't go to respective tab #21885

@TylerBurnett

Description

@TylerBurnett

Bug Report

Ionic version:

[ ] 4.x
[x] 5.x React

Current behavior:

Any page that inherits <RouteComponentProps> from either React router OR React Router DOM will automatically overwrite the href URL of IonTabButton1, upon navigation to such page.

Expected behavior:

For that not to happen.

Steps to reproduce:

After installing the respective packages, take note of the current routing that is set in the App.tsx. Now once you start the app you should notice that you are on the intial tester page which in face inherits <RouteComponentProps>. Now attempt to navigate to IonTabButton1.
Reproduction.zip

Related code:

Other information:

Ionic info:

Ionic:

   Ionic CLI       : 6.11.0 (C:\Users\tyler\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework : @ionic/react 5.3.1

Capacitor:

   Capacitor CLI   : 2.4.0
   @capacitor/core : 2.4.0

Utility:

   cordova-res : 0.14.1
   native-run  : not installed

System:

   NodeJS : v14.4.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.14.7
   OS     : Windows 10

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