How can i disabled the OK button in $ionicPopup.show?


#1

I’m having some issues with $ionicPopup. I have a popup with a button and an onTap event attached to the button.The problem appears when I click very fast the button (two or more times). In this situation, the onTap function is executed two or more times and my counter is increased in more than one.

Do you know any way of controlling the fast clicks in the button for calling only once the onTap function?
Thank you,


#2

Can you provide a codepen example. I tried with my popups where the counter always stayed at 1.