Alert dismisses when I scroll before I trigger it


#1

Hello everyone.

I’m having a very weird issue here. If I enter a page and trigger an alert with, let’s say a button, it works perfectly. But whenever I scroll the page and then trigger the alert (does not matter which kind) it triggers but it disappears right away.

Any ideas?


#2

This is an issue about the framework. Does anyone know how to fix this?

I’d love how to communicate the ionic team about this but I don’t know how.


#3

Could you test it with disabling backdrop dismiss?

let alert = this.alertCtrl.create({

        title: 'My Alert',
        subTitle: 'will this work?',
        enableBackdropDismiss: false,
        buttons: [{
            text: 'Click Me'
        }]

    });

    alert.present();

#4

Worked perfectly. Thank you very much.