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