Ion-slides modal dismissing too fast


#1

Hi all!

I currently have pictures on a view that can be tapped and then a new modal opens up with the tapped image in an ion-slides tag. I want the modal to be dismissed when tapping anywhere, which works perfectly fine. When the user taps in a location where the underlying page would have an image, the modal instantly gets reopened with the image again. This behaviour wasn’t there pre-ionic3 so I don’t know if something changed there.

I use this.viewCtrl.dismiss(); to dismiss the modal with on-tap="dismiss()" and open it with this.modalController.create and then modal.present();

Does anyone know how to resolve this? Thanks.

Kev


#2

Ok i just resolved this by changing from (click) to on-tap when opening the modal.