ionic-framework
ionic-framework copied to clipboard
bug: modal-controller open twice modal when click
Prerequisites
- [x] I have read the Contributing Guidelines.
- [x] I agree to follow the Code of Conduct.
- [x] I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v7.x
Current Behavior
when i try to open modal with modal-controller it opens twice modal at the same time...
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
You will have to add a reproduction repository to better understand the issue
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.
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 Same for you: Can you provide a reproducible repo? 😊
Closing due to the lack of a reproduction. If the issue persists, please open a new one with a minimal reproduction. Thanks!
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.