Skip to content

Commit

Permalink
fix(vue): back button event handling (#17877)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltintiuc authored and mhartington committed Mar 26, 2019
1 parent eaec9ca commit dceec07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vue/src/components/ion-vue-router.ts
Expand Up @@ -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
Expand Down

0 comments on commit dceec07

Please sign in to comment.