Ion-searchbar - Search on Enter Key IE issues


#1

Using Ionic 3 I’ve implemented code to detect when the enter key via the search emitter. This solutions works perfect for Chrome, Safari, Android and iOS.

But surprise surprise it does not work in IE edge. Here is my code, does any one have any suggestions how I could get this working in IE edge?

HTML

<ion-searchbar placeholder="Search Companies.."  [(ngModel)]="query"
    [showCancelButton]="shouldShowCancel"
    (search)="onKey($event)"
    (ionCancel)="onCancel($event)">
</ion-searchbar>

#2

Solution was replacing (search) with (ionInput)