Ionic 2 (click) is triggered twice

0

I am developing an app with Ionic 2, but I found the problem with the click event when trying the application on a device, in this case it is an iphone.

This is the code I use to generate an alert, it's simple but it's triggered twice.

home.html

<div padding>
    <button ion-button full (click)="TestAlert()">Alert</button>
</div>

home.ts

TestAlert(){

     console.log('Hola');
     alert('Hola');
  }

If someone knows if it is a problem of framework configuration or has the same problem and solved it, it would be very helpful.

I also share the example of what I am doing in this repository

    
asked by Jorge Mejia 04.05.2017 в 19:31
source

1 answer

0

Someone answered the same question on the page in English.

The solution is to utulize (tap) instead of (click) and if you still have problems updating ionic to version 3.1.1.

    
answered by 04.05.2017 / 20:42
source