Skip to content

bug: ion-nav transitions are broken in react  #25688

Closed
@sean-perkins

Description

@sean-perkins

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

Starting in 6.1.15, IonNav page transitions are incorrect.

The changes to support custom sized dialogs, introduced a change to the global stylesheet that is being applied in scenarios where IonNav is used within IonModal.

Problematic styles:

ion-modal .ion-page {
  position: relative;

  contain: layout style;

  height: 100%;
}

Expected Behavior

IonNav transitions should be consistent within a modal or outside of a modal.

Steps to Reproduce

  1. Clone: https://github.com/milang/ionic-simplevitejs
  2. Checkout branch: recursivemodalnav
  3. npm install
  4. npm run dev
  5. Click "Open Modal"
  6. Click "Push"
  7. Observe the incorrect transition between views

Code Reproduction URL

https://github.com/milang/ionic-simplevitejs

Ionic Info

6.1.15+

Additional Information

Related to: #25677 (caused by the same change, but are effected differently between Angular and React).

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