Skip to content

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

Closed

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

  1. added theissue type on Jun 18, 2026
  2. added a commit that references this issue on Jun 18, 2026
    8e76fd0
  3. ShaneK commented on Jun 22, 2026

    @ShaneK
    Member

    Hey, thanks for the report! This had been fixed in v9 but has no reason not to be fixed in v8. The fix has been merged and will most likely be deployed Wednesday with our weekly update.

  4. ShaneK commented on Jun 25, 2026

    @ShaneK
    Member

    The fix for this is out now in 8.8.12!

  5. ionitron-bot commented on Jul 25, 2026

    @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.

  6. locked and limited conversation to collaborators on Jul 25, 2026
  7. added a commit that references this issue on Oct 3, 2026
    f5968d1
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