Searchbar doesn't show cancel button on android


#1

Searchbar doesn’t show cancel button on Android but does in IOS? Does anyone know how i can get ionic 2 rc to show cancel button android too.

The searchbar:

<ion-searchbar placeholder="{{placeholder}}" cancelButtonText="Annuller" [showCancelButton]="true" (ionInput)="getItems($event)" (ionCancel)="onCancel($event)"></ion-searchbar>

Screenshot Android:

Screenshot IOS:


#2

Yes, I have the same problem since upgrading to RC0. It worked in beta versions.


#3

I have the same error.

Use this workaround, it works: Searchbar showCancelButton on Android RC0