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

bug: modal-controller open twice modal when click

Open alitalaee opened this issue 8 months ago • 4 comments

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

when i try to open modal with modal-controller it opens twice modal at the same time...

Image Image

async showSelectProductModal() { const modal = await this.modalCtrl.create({ component: SelectProductsComponent, initialBreakpoint: 0.75, breakpoints: [0.5, 0.75], componentProps: { 'multiple': true, } }); modal.onWillDismiss().then((a) => { console.log(a); }) await modal.present(); }

Expected Behavior

it should open modal only one

Steps to Reproduce

1-make a component 2- open it on modal-controller

Code Reproduction URL

.

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/Users/alitalaee/.nvm/versions/node/v20.18.2/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 6.7.5 @angular-devkit/build-angular : 16.1.5 @angular-devkit/schematics : 16.1.5 @angular/cli : 16.1.5 @ionic/angular-toolkit : 9.0.0

Additional Information

No response

alitalaee avatar Mar 25 '25 10:03 alitalaee

You will have to add a reproduction repository to better understand the issue

EinfachHans avatar Mar 26 '25 20:03 EinfachHans

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 Apr 24 '25 20:04 ionitron-bot[bot]

I face the same issue. When I click on this, it's opened two-three-four times.

https://github.com/user-attachments/assets/d3d604c7-981c-4179-860f-f9e496192718

prakash-patel-2801 avatar May 05 '25 10:05 prakash-patel-2801

@prakash-patel-2801 Same for you: Can you provide a reproducible repo? 😊

EinfachHans avatar May 05 '25 19:05 EinfachHans

Closing due to the lack of a reproduction. If the issue persists, please open a new one with a minimal reproduction. Thanks!

thetaPC avatar Sep 23 '25 19:09 thetaPC

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.

ionitron-bot[bot] avatar Oct 23 '25 20:10 ionitron-bot[bot]