How to use enableBackdropDismiss with ModalController?


#1

how to use enableBackdropDismiss with ModalController?


#2

Hi @gr00kiter, Did you find solution to this?


#3

myFunction() {
let modal = this.modalCtrl.create(MyCustomPage, {enableBackdropDismiss: false});
modal.present();
}

try this


#4

The correct way is:

let modal = this.modalCtrl.create(YourPage, { params: '...' }, {showBackdrop: true, enableBackdropDismiss: true});
modal.present();

#5

Hi, I have set the option ‘enableBackdropDismiss: false’ to prevent closing the modal when click outside. But still it’s closing… any guess!