Skip to content

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

Open
@alitalaee

Description

@alitalaee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions