Skip to content

bug: Invisible overlay behind sheet modal on 8.7.4 #30684

Closed

Description

@SteliosMoch

Prerequisites

Ionic Framework Version

v8.7.4

Current Behavior

I have a map page with a sheet modal, the map includes clickable markers and buttons. After I updated "@ionic/angular" to "8.7.4" I cannot press anything behind the sheet modal.
On chrome inspect there's a there's an overlay that doesn't let me click anything behind my modal.
If I remove the modal I can then press the buttons.

Image

Expected Behavior

I expect to be able to press my buttons and markers behind the sheet modal, like on version "8.7.3"

Steps to Reproduce

  1. Install an Ionic Angular project
  2. Add a sheet modal according to the documentation.
  3. Add clickable items on the page.
  4. Try to press the buttons that are behind the sheet modal.

Code Reproduction URL

https://github.com/SteliosMoch/modal-overlay-test

Ionic Info

Ionic:

Ionic CLI : 7.2.1 (/Users/stelios/.nvm/versions/node/v22.18.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.7.4
@angular-devkit/build-angular : 19.2.17
@angular-devkit/schematics : 19.2.17
@angular/cli : 19.2.17
@ionic/angular-toolkit : 12.3.0

Capacitor:

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

Utility:

cordova-res : 0.15.4
native-run : 2.0.1

System:

NodeJS : v22.18.0 (/Users/stelios/.nvm/versions/node/v22.18.0/bin/node)
npm : 10.9.3
OS : macOS Unknown

Additional Information

No response

Activity

  1. changed the title [-]bug: Invinsible backdrop behind sheet modal on 8.7.4[/-] [+]bug: Invinsible overlay behind sheet modal on 8.7.4[/+] on Sep 18, 2025
  2. changed the title [-]bug: Invinsible overlay behind sheet modal on 8.7.4[/-] [+]bug: Invisible overlay behind sheet modal on 8.7.4[/+] on Sep 18, 2025
  3. petrot commented on Sep 18, 2025

    @petrot

    Same here, I opened a modal form, and after save/close the modal, the parent list page is "disabled"..

  4. ggarg2 commented on Sep 19, 2025

    @ggarg2

    I’m facing the same issue.

    When I open a modal and then close it using @ViewChild reference, the screen gets stuck — I can’t scroll or tap anywhere.

    @ViewChild('customModal') customModal: IonModal;
    
    if (this.customModal?.isCmpOpen) {
      await this.customModal?.dismiss();
    }

    However, if I close the modal with typescript modalController.dismiss(), the stuck screen issue does not occur.

  5. poserr commented on Sep 19, 2025

    @poserr

    Same for ionic/react after upgrading from 8.7.3 to 8.7.4

    after opening and closing any ion-modal the main content section of ion-page becomes unusable (no click/scroll events), only tab bar is responsive, so I guess the issue has something to do with backdrop/overlays

  6. added
    ionitron: needs reproduction
    on Sep 19, 2025
  7. ionitron-bot commented on Sep 19, 2025

    @ionitron-bot

    Thanks for the issue! This issue has been labeled as needs reproduction. This label is added to issues that need a code reproduction.

    Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.

    If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.

    For a guide on how to create a good reproduction, see our Contributing Guide.

  8. ShaneK commented on Sep 19, 2025

    @ShaneK
    Member

    I've tried reproducing this but I can't seem to. A good place to start with a reproduction would be the Ionic Framework documentation on the modal page, going to a Stackblitz, then changing it to what needs to be changed to reproduce the errors. After you've reproduced it, save your fork and post it here.

    Does it only happen when run natively? Does it only happen with Angular? Are you passing other parameters to your modal?

  9. SteliosMoch commented on Sep 22, 2025

    @SteliosMoch
    Author

    I've tried reproducing this but I can't seem to. A good place to start with a reproduction would be the Ionic Framework documentation on the modal page, going to a Stackblitz, then changing it to what needs to be changed to reproduce the errors. After you've reproduced it, save your fork and post it here.

    Does it only happen when run natively? Does it only happen with Angular? Are you passing other parameters to your modal?

    I created a repo for reproduction: https://github.com/SteliosMoch/modal-overlay-test

    This problem happens both on my device, Samsung Galaxy S25 and on browser with 'ionic serve' command.

  10. poserr commented on Sep 22, 2025

    @poserr

    I finally reproduced my issue and it linked with conditional rendering of IonModal component where isOpen is fixed to true. I would agree that fixing isOpen={true} it is probably not the best approach, but tests did not show any problems with version <= 8.7.3.

    8.7.3 : https://stackblitz.com/edit/cst7dxnw-chwt1ajr?file=src%2FPage1.tsx
    8.7.4 : https://stackblitz.com/edit/cst7dxnw-inpgicbw?file=src%2FPage1.tsx

  11. added
    type: bug
    and removed
    ionitron: needs reproduction
    on Sep 22, 2025
  12. ShaneK commented on Sep 22, 2025

    @ShaneK
    Member

    Hey! Thank you so much for the reproductions. I was able to create regression tests for this and fix the issue, which was indeed caused by the recent aria-hidden changes.

    If you'd like to test the PR before it's deployed, you can use this dev build:

    8.7.5-dev.11758560050.1d0c4f0a
    
  13. 2 remaining items

  14. NgLoader commented on Sep 22, 2025

    @NgLoader

    If you grab the event.target and then find the ion-content in it and then add as a child to that, you may have better luck.

    That was just for example, below that you can see my real implementation.

    I'm just trying to create a modal that is presenting inside a declared area.
    Here is a current working example with version 8.7.3:

    Image

  15. RowTracker commented on Sep 23, 2025

    @RowTracker

    I have a similar issue. The map click events stopped working on both IOS and android when any version of Ionic 8.7.1 or above is installed. All works correctly with 8.7.0 or below. Note I'm not using modal dialogs when showing a map.

    The release notes for 8.7.1 just say it was a bump of the stencil/core version number but it was more than that when you look at the checkin diferences, notably HTMLElements have been replaced with HTMLStencilElements which suggests something bigger than just a version bump was done in this release.

  16. ShaneK commented on Sep 23, 2025

    @ShaneK
    Member

    Hey @RowTracker, that sounds like a different issue that you may want to report in a different issue thread with a reproduction.

  17. ShaneK commented on Sep 23, 2025

    @ShaneK
    Member

    Hey @NgLoader, I have a new dev build for you to try:

    8.7.5-dev.11758642453.13b1da5d
    

    Let me know if this helps!

  18. de-dan commented on Sep 23, 2025

    @de-dan

    Hi @ShaneK I experience the same issue as described (also tested with your latest version 13b1da5d). I noticed one key difference between 8.7.3 and 8.7.4 (/8.7.5-dev.....): On my affected page the CSS class "backdrop-no-scroll" is added to the body. I hope that helps further debugging.

  19. ShaneK commented on Sep 23, 2025

    @ShaneK
    Member

    @de-dan I'm going to need a reproduction of this issue that doesn't work with 8.7.5-dev.11758642453.13b1da5d because everything I have currently works and passes with it.

  20. NgLoader commented on Sep 23, 2025

    @NgLoader

    Hey @NgLoader, I have a new dev build for you to try:

    8.7.5-dev.11758642453.13b1da5d
    

    Let me know if this helps!

    Hey, thanks for trying to fix my issue, but it’s still occurring.

    https://stackblitz.com/edit/cst7dxnw-o5i8shu5

    Whenever you’re ready, I can send you a private Discord link for debugging (ngloader).
    So you can see what is happening if the provided example is not good enough.

    (I'm using Capacitorjs 7.1.0 with Angular 20)

  21. ShaneK commented on Sep 23, 2025

    @ShaneK
    Member

    Alright, so looks like this was specifically teleported modals.

    Please try this new dev build:

     8.7.5-dev.11758652700.103435a3
    
  22. NgLoader commented on Sep 23, 2025

    @NgLoader

    Yep, its working now.

    Will test it a little more but for the moment it seems fine.

  23. maximilianschmid commented on Sep 24, 2025

    @maximilianschmid

    @ShaneK 8.7.5-dev.11758652700.103435a3 fixes the issues introduced in 8.7.4 for us too

  24. added a commit that references this issue on Sep 24, 2025
    a40d957
  25. ShaneK commented on Sep 24, 2025

    @ShaneK
    Member

    Hey everyone, thanks for your feedback on this issue! This has been released in today's patch, v8.7.5

  26. ionitron-bot commented on Oct 24, 2025

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

  27. locked and limited conversation to collaborators on Oct 24, 2025
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: bug

    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