Click on popup button triggers button in background


Hi there,

i have a problem with an ionic-popup: Clicking on popup button triggers the button in the background too. The result is that my app crashes, because the popup-button triggers the cordova-barcodescanner-plugin and the background-button opens a browser-window. Both together can’t start simultanously, whyever…
In my opinion, the popup should disable all the buttons in the background, which are covered by the popup-backdrop.
iOS is the only platform that seems to be affected.
Are there any workarounds? Or do i possibly have discovered a bug of ionic?

My environment:
Cordova CLI: 6.3.1
Ionic CLI: 2.1.14
Ionic App Lib Version: 2.1.7
OS: OS X El Capitan

My app is a ionic-v1 app.


try using event.preventdefault


I was having the same issue and I tried putting $evt.stopImmediatePropagation() but that didn’t work. Using the $evt.preventDefault() worked for me. Thanks baviskarmitesh!