I’m using the following to successfully detect a paste event
// <ion-searchbar (ionInput)="searchBarInput($event)"></ >
searchBarInput(ev:any){
if (ev && ev.detail && ev.detail.inputType=="insertFromPaste"){
console.log("keyboard PASTE detected", ev.detail.data); // ev.detail.data==null
}
}
but the data is still null
at this time.
I want to fire an ionBlur()
event to handle the data, but ev.target.blur()
doesn’t seem to work.
What can I do?