mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(vue): back button event handling (#17877)
This commit is contained in:
committed by
Mike Hartington
parent
eaec9ca791
commit
dceec07390
@@ -56,6 +56,9 @@ export default {
|
||||
};
|
||||
|
||||
function catchIonicGoBack(parent: Vue, event: Event): void {
|
||||
// In case of nested ion-vue-routers run only once
|
||||
event.stopImmediatePropagation();
|
||||
|
||||
if (!event.target) return;
|
||||
|
||||
// We only care for the event coming from Ionic's back button
|
||||
|
||||
Reference in New Issue
Block a user