Skip to content

bug: ionic react IonTabButton overrides user onClick handler #22511

Closed
@AndreaBeggiato

Description

@AndreaBeggiato

Bug Report

Ionic version:

[ ] 4.x
[x] 5.x

Current behavior:
onIonClick on TabButton removed.
We used to history.replace and not history.push when a tab is clicked, because our users when navigate between tabs prefer to back to the previous page and not to the previous tab. When they click back and forth through tabs, let's say 10 times, they need to press the back button (hardware or software) 10 times to return to the previous page.

Expected behavior:
Reintroduction of onIonClick on TabButton removed

Steps to reproduce:
Create any tab

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