Ion-cancel is not working in searchbar


#1

Template Code -

<ion-toolbar>
    <ion-searchbar (ionInput)="filter($event)" (ionCancel)="onCancelSearch($event)" placeholder="Code">
    </ion-searchbar>
  </ion-toolbar>

.ts Code -

onCancelSearch(event){
    console.log('Not working..')
  }

In the above code onCancelSearch Not Working in Android