According to this link https://ionicframework.com/docs/api/input#events ionic supports keypress event which is working fine in the browser but in mobile device it is not triggering
html
<ion-item>
<ion-label>Default Label</ion-label>
<ion-input (keypress)="test($event)"></ion-input>
</ion-item>
ts
test(event){
console.log(event);
e.preventDefault();
}
the above code works fine in ionic serve not in mobile device
According to this https://developer.mozilla.org/en-US/docs/Web/API/Document/keypress_event keypress is depricated i am not understanding
Events i tried: keypress, keydown, keyup, ionblur, ionChange, input,..etc Either it is not working or it or preventdefault is not working