ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: [iOS] ionic modal backdrop delay when there is simultaneous animations happening at the same time

Open Sovai opened this issue 1 year ago • 1 comments

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

Backdrop delay a bit before closing when there are other animation happening at the same time (on iOS device only)

Expected Behavior

The backdrop, modal sheet and my other animations close/animate simultaneously without delay

Steps to Reproduce

I have a modal sheet component where I emit onBeforeDismiss to the child

// SheetModal.vue
    <ion-modal
      :keep-contents-mounted="keepAlive"
      :is-open="state"
      animated
      mode="ios"
      handleBehavior="circle"
      :showBackdrop="showBackdrop"
      @didDismiss="didDismiss"
      ...
    >
      ...
  </ion-modal>
const beforeDismiss = () => {
  emit("sheetClose");
};

And here's how I call it

// HomePage.vue
<SheetModal
@sheetClose="animateOtherStuffs"
>
...
</SheetModal>

when the modal is closing the same time with my other animation (just rotate chevron icon) the sheet is closed but the backdrop is delay about 1 second then close. This happen on iOS only

Code Reproduction URL

No response

Ionic Info

not able to provide

Additional Information

No response

Sovai avatar Jan 12 '24 04:01 Sovai

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.

ionitron-bot[bot] avatar Jan 12 '24 14:01 ionitron-bot[bot]

Thanks for the issue! This issue is being closed due to the lack of a code reproduction. 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.

Thank you for using Ionic!

liamdebeasi avatar Jan 26 '24 14:01 liamdebeasi