Skip to content
Permalink
Browse files

fix(vue): back button event handling (#17877)

  • Loading branch information...
michaeltintiuc authored and mhartington committed Mar 26, 2019
1 parent eaec9ca commit dceec0739032faf7cabd96fcdee21648952c9aee
Showing with 3 additions and 0 deletions.
  1. +3 −0 vue/src/components/ion-vue-router.ts
@@ -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

0 comments on commit dceec07

Please sign in to comment.
You can’t perform that action at this time.