Skip to content

bug: modal-controller open twice modal when click #30301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
alitalaee opened this issue Mar 25, 2025 · 4 comments
Open
3 tasks done

bug: modal-controller open twice modal when click #30301

alitalaee opened this issue Mar 25, 2025 · 4 comments
Labels
ionitron: needs reproduction a code reproduction is needed from the issue author

Comments

@alitalaee
Copy link

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

@ionitron-bot ionitron-bot bot added the triage label Mar 25, 2025
@EinfachHans
Copy link
Contributor

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

@brandyscarney brandyscarney added the ionitron: needs reproduction a code reproduction is needed from the issue author label Apr 24, 2025
Copy link

ionitron-bot bot commented Apr 24, 2025

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 ionitron-bot bot removed the triage label Apr 24, 2025
@prakash-patel-2801
Copy link

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

Ionic.App.1.mp4

@EinfachHans
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ionitron: needs reproduction a code reproduction is needed from the issue author
Projects
None yet
Development

No branches or pull requests

4 participants