enableBackdropDismiss on modalCtrl doesnt work

Hi @Jibe,

I was dealing with similar issue, this is my solution - An alternative to md-bottom-sheet in ionic 2+

You have .modal-wrapper overlaying the backdrop in your case, that’s why the click is not registered.

In your filters modal constructor set a custom class -

this.renderer.setElementClass(viewCtrl.pageRef().nativeElement, 'filters-modal', true);

and in CSS


ion-modal.filters-modal .modal-wrapper{
    bottom:0;
    width:100%;
    height:300px;
    position:absolute;
}

Hope it helps

2 Likes