You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: Invisible overlay behind sheet modal on 8.7.4 #30684
I have searched for existing issues that already report this problem, without success.
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.
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
Install an Ionic Angular project
Add a sheet modal according to the documentation.
Add clickable items on the page.
Try to press the buttons that are behind the sheet modal.
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
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.
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'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 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.
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:
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.
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.
@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.
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.
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.
Activity
[-]bug: Invinsible backdrop behind sheet modal on 8.7.4[/-][+]bug: Invinsible overlay behind sheet modal on 8.7.4[/+][-]bug: Invinsible overlay behind sheet modal on 8.7.4[/-][+]bug: Invisible overlay behind sheet modal on 8.7.4[/+]petrot commentedon Sep 18, 2025
Same here, I opened a modal form, and after save/close the modal, the parent list page is "disabled"..
ggarg2 commentedon Sep 19, 2025
I’m facing the same issue.
When I open a modal and then close it using
@ViewChildreference, the screen gets stuck — I can’t scroll or tap anywhere.However, if I close the modal with
typescript modalController.dismiss(), the stuck screen issue does not occur.poserr commentedon Sep 19, 2025
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
ionitron-bot commentedon Sep 19, 2025
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.
ShaneK commentedon Sep 19, 2025
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?
SteliosMoch commentedon Sep 22, 2025
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.
poserr commentedon Sep 22, 2025
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
ShaneK commentedon Sep 22, 2025
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:
2 remaining items
NgLoader commentedon Sep 22, 2025
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:
RowTracker commentedon Sep 23, 2025
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.
ShaneK commentedon Sep 23, 2025
Hey @RowTracker, that sounds like a different issue that you may want to report in a different issue thread with a reproduction.
ShaneK commentedon Sep 23, 2025
Hey @NgLoader, I have a new dev build for you to try:
Let me know if this helps!
de-dan commentedon Sep 23, 2025
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.
ShaneK commentedon Sep 23, 2025
@de-dan I'm going to need a reproduction of this issue that doesn't work with
8.7.5-dev.11758642453.13b1da5dbecause everything I have currently works and passes with it.NgLoader commentedon Sep 23, 2025
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.0with Angular20)ShaneK commentedon Sep 23, 2025
Alright, so looks like this was specifically teleported modals.
Please try this new dev build:
NgLoader commentedon Sep 23, 2025
Yep, its working now.
Will test it a little more but for the moment it seems fine.
maximilianschmid commentedon Sep 24, 2025
@ShaneK 8.7.5-dev.11758652700.103435a3 fixes the issues introduced in 8.7.4 for us too
fix(modal): allow sheet modals to skip focus trap (#30689)
ShaneK commentedon Sep 24, 2025
Hey everyone, thanks for your feedback on this issue! This has been released in today's patch, v8.7.5
ionitron-bot commentedon Oct 24, 2025
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.