diff --git a/packages/core/src/components/nav/transitions/transition.md.ts b/packages/core/src/components/nav/transitions/transition.md.ts index 29e12af3df..ac6bc55881 100644 --- a/packages/core/src/components/nav/transitions/transition.md.ts +++ b/packages/core/src/components/nav/transitions/transition.md.ts @@ -71,6 +71,11 @@ function getIonPageElement(element: HTMLElement) { return ionPage; } + const ionNav = element.querySelector('ion-nav'); + if (ionNav) { + return ionNav; + } + // idk, return the original element so at least something animates and we don't have a null pointer return element; }