Skip to content

[4.0.0-rc.0] ion-tab-button requires tab contradictory to the docs and preventing 'plain buttons' #16845

Closed

Description

@tehXor

Bug Report

Ionic version:
[x] 4.0.0-rc.0

Current behavior:
An ion-tab-button without a tab attribute but only a (click) attribute will throw an exception on load that tab is required. On click it will try to navigate to <current-route>/undefined which again will lead to an exception which also prevents (click) to be executed.

Expected behavior:
Like the docs say at https://github.com/ionic-team/ionic/blob/master/angular/BREAKING.md#tabs this should be "No ion-tab, just a button that looks like a tab" and therefore (click) should be executed.

Steps to reproduce:
Build an example like shown at https://github.com/ionic-team/ionic/blob/master/angular/BREAKING.md#tabs under "New Usage Example:" and here under "No ion-tab, just a button that looks like a tab"

Activity

  1. added a commit that references this issue on Dec 29, 2018
    70bc2d6
  2. added a commit that references this issue on Dec 31, 2018
    6ca7645
  3. jeandonaldroselin commented on Jan 7, 2019

    @jeandonaldroselin

    Hello @manucorporat,

    First a triple GREAAT thank you ( All Ionic Team ) for great job you are doing with this Ionic 4's version

    and previous versions ( I use ionic from the first's version ).

    ----------------------- I CONTACT YOU FOR THIS ------------------------

    I tried to add ( a click event, then a href attribute ) on the ion-tab-button component.

    But it raise the error that the "tab" attribute is mandatory etc ..

    • [When I watch your PR, the error is fixed. SO It is OK ]

    • [When I watch the doc of the ion-tab-buttons component (https://beta.ionicframework.com/docs )
      I see it is updated with href attribute etc .. SO It is OK ]

    • [ When I create a new project based on the latest Ionic's version ( 4.0.0-rc.0 ), the problem is still present.]

    ----------------------------- MY QUESTION ------------------------------

    Please do you know when the next release ( 4.0.0-rc.1 or other ) is planned ?

  4. ionitron-bot commented on Feb 6, 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.

  5. locked and limited conversation to collaborators on Feb 6, 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

    package: angular

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions