Skip to content

bug: Angular: Modal does not open when using ModalController and the component declares an InputSignal with the root #31220

Description

@j-oppenhuis

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

When using ionic/angular: ^8.8. When we use ModalController with a dynamic root input that is given to the nav. It will open an empty nav.

Expected Behavior

When ModalController opens a component that contains an ion-nav, and that nav's root is set dynamically via an InputSignal, the nav should render the root component.

Steps to Reproduce

  1. Go to https://stackblitz.com/edit/kodxyzx4?file=src%2Fmain.ts
  2. Click on open modal. (This opens with an empty nav)
  3. Refresh
  4. Click on 'Open nav with if' (This opens with a filled nav)

Code Reproduction URL

https://stackblitz.com/edit/kodxyzx4?file=src%2Fmain.ts

Ionic Info

Ionic:

Ionic CLI : 7.2.1
Ionic Framework : @ionic/angular 8.8.10

Capacitor:

Capacitor CLI : 8.4.0
@capacitor/android : 8.4.0
@capacitor/core : 8.4.0
@capacitor/ios : 8.4.0

Utility:

cordova-res : not installed globally
native-run : 2.0.3

System:

NodeJS : v22.18.0
npm : 10.9.3
OS : macOS Unknown

Additional Information

No response

Activity

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: buga confirmed bug report

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions