Skip to content

Commit da2ba2e

Browse files
Stop back button event propagation
1 parent 277115b commit da2ba2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/ion-vue-router.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ export default {
5656
};
5757

5858
function catchIonicGoBack(parent: Vue, event: Event): void {
59+
// In case of nested ion-vue-routers run only once
60+
event.stopImmediatePropagation();
61+
5962
if (!event.target) return;
6063

6164
// We only care for the event coming from Ionic's back button

0 commit comments

Comments
 (0)