Skip to content
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

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

Open
3 tasks done
alitalaee opened this issue Mar 25, 2025 · 1 comment
Open
3 tasks done

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

alitalaee opened this issue Mar 25, 2025 · 1 comment
Labels

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants