Skip to content

Commit

Permalink
fix(): add undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Dec 9, 2021
1 parent 86b63c8 commit ef6eb07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue/src/components/IonRouterOutlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ See https://ionicframework.com/docs/vue/navigation#ionpage for more information.
* return early for swipe to go back when
* going from a non-tabs page to a tabs page.
*/
if (isViewVisible(enteringEl) && !isViewVisible(leavingViewItem.ionPageElement)) {
if (isViewVisible(enteringEl) && leavingViewItem !== undefined && !isViewVisible(leavingViewItem.ionPageElement)) {
return;
}

Expand Down

0 comments on commit ef6eb07

Please sign in to comment.