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

This commit is contained in:
Michael Tintiuc
2019-03-26 14:44:28 +02:00
committed by Mike Hartington
parent eaec9ca791
commit dceec07390

View File

@ -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