Skip to content

Comments

feat(modal): add drag events for sheet and card modals#30962

Draft
thetaPC wants to merge 4 commits intofeature-8.8from
FW-7051
Draft

feat(modal): add drag events for sheet and card modals#30962
thetaPC wants to merge 4 commits intofeature-8.8from
FW-7051

Conversation

@thetaPC
Copy link
Contributor

@thetaPC thetaPC commented Feb 20, 2026

Issue number: resolves #


What is the current behavior?

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Other information

@vercel
Copy link

vercel bot commented Feb 20, 2026

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

Project Deployment Actions Updated (UTC)
ionic-framework Ready Ready Preview, Comment Feb 20, 2026 8:46pm

Request Review

@github-actions github-actions bot added the package: core @ionic/core package label Feb 20, 2026
Comment on lines -696 to -720
/**
* While the gesture animation is finishing
* it is possible for a user to tap the backdrop.
* This would result in the dismiss animation
* being played again. Typically this is avoided
* by setting `presented = false` on the overlay
* component; however, we cannot do that here as
* that would prevent the element from being
* removed from the DOM.
*/
this.gestureAnimationDismissing = true;

/**
* Reset the status bar style as the dismiss animation
* starts otherwise the status bar will be the wrong
* color for the duration of the dismiss animation.
* The dismiss method does this as well, but
* in this case it's only called once the animation
* has finished.
*/
setCardStatusBarDefault(this.statusBarStyle);
this.animation!.onFinish(async () => {
await this.dismiss(undefined, GESTURE);
this.gestureAnimationDismissing = false;
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was moved to a new function called cardOnDismiss()

@thetaPC thetaPC changed the title feat(modal): add drag events feat(modal): add drag events for sheet and card modals Feb 20, 2026
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.

1 participant