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:
@@ -21,7 +21,7 @@ export class NavController {
|
||||
private location: Location,
|
||||
@Optional() private router?: Router
|
||||
) {
|
||||
window && window.document.body.addEventListener('ionBackButton', (ev) => {
|
||||
window && window.document.addEventListener('ionBackButton', (ev) => {
|
||||
(ev as BackButtonEvent).detail.register(0, () => this.goBack());
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user