-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Labels
package: core@ionic/core package@ionic/core package
Description
Bug Report
Ionic Info
Ionic:
ionic (Ionic CLI) : 4.0.6
Ionic Framework : @ionic/angular 4.0.0-beta.2
@angular-devkit/core : 0.7.3
@angular-devkit/schematics : 0.7.3
@angular/cli : 6.1.3
@ionic/ng-toolkit : 1.0.6
@ionic/schematics-angular : 1.0.4
Describe the Bug
When using ion-searchbar and click the cancel button (back arrow) should navigate me to another page. This functionally is working on the mobile browser but on the desktop browser is does not work? (nothing happened when clicking on cancel button)
Steps to reproduce the behaviour:
- Click on the search box
- Click the cancel button (back arrow)
Related Code
.html
<ion-searchbar showCancelButton=true (ionCancel)="onCancel($event)"></ion-searchbar>
.ts
onCancel(event) { this.router.navigateByUrl('/home'); }
Expected Behavior
The cancel button should trigger function which goes back to homepage using Router.
Adrian651 and samzhao2008
Metadata
Metadata
Assignees
Labels
package: core@ionic/core package@ionic/core package