mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(): handle failure in hardware back button
This commit is contained in:
@@ -81,7 +81,7 @@ export class Router {
|
||||
return this.writeNavStateRoot(path, direction);
|
||||
}
|
||||
|
||||
@Listen('window:ionBackButton')
|
||||
@Listen('document:ionBackButton')
|
||||
protected onBackButton(ev: BackButtonEvent) {
|
||||
ev.detail.register(0, () => this.goBack());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user