Skip to content

Conversation

@ShaneK
Copy link
Member

@ShaneK ShaneK commented Dec 29, 2025

Issue number: resolves #30679


What is the current behavior?

When a page contains a card modal with a presentingElement, resizing the viewport (e.g., rotating from portrait to landscape) triggers the card modal's "lean back" animation on the presenting element, even when the modal has never been opened.

What is the new behavior?

Viewport resize events no longer trigger the presenting element animation when the modal is not presented. The animation only runs when the modal is actually open.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Current dev build:

8.7.16-dev.11767028735.16932cea

@ShaneK ShaneK requested a review from a team as a code owner December 29, 2025 17:18
@ShaneK ShaneK requested a review from OS-jacobbell December 29, 2025 17:18
@vercel
Copy link

vercel bot commented Dec 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
ionic-framework Ready Ready Preview, Comment Dec 29, 2025 5:23pm

@github-actions github-actions bot added the package: core @ionic/core package label Dec 29, 2025
@ShaneK ShaneK enabled auto-merge December 30, 2025 18:33
@ShaneK ShaneK disabled auto-merge December 30, 2025 18:33
@ShaneK ShaneK merged commit e5634d4 into main Dec 30, 2025
52 checks passed
@ShaneK ShaneK deleted the FW-6774 branch December 30, 2025 18:33
ShaneK added a commit that referenced this pull request Dec 31, 2025
…l is closed (#30894)

Issue number: resolves #30679

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
When a page contains a card modal with a `presentingElement`, resizing
the viewport (e.g., rotating from portrait to landscape) triggers the
card modal's "lean back" animation on the presenting element, even when
the modal has never been opened.

## What is the new behavior?
Viewport resize events no longer trigger the presenting element
animation when the modal is not presented. The animation only runs when
the modal is actually open.

## Does this introduce a breaking change?

- [ ] Yes
- [X] No

<!--
  If this introduces a breaking change:
1. Describe the impact and migration path for existing applications
below.
  2. Update the BREAKING.md file with the breaking change.
3. Add "BREAKING CHANGE: [...]" to the commit description when merging.
See
https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer
for more information.
-->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

Current dev build:
```
8.7.16-dev.11767028735.16932cea
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Viewport changes in an IonPage containing a card type IonModal cause an unwanted IonPage animation

2 participants