mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
fix(nav): md animation
This commit is contained in:
@ -70,11 +70,14 @@ function getIonPageElement(element: HTMLElement) {
|
||||
if (ionPage) {
|
||||
return ionPage;
|
||||
}
|
||||
|
||||
const ionNav = element.querySelector('ion-nav');
|
||||
if (ionNav) {
|
||||
return ionNav;
|
||||
}
|
||||
const ionTabs = element.querySelector('ion-tabs');
|
||||
if (ionTabs) {
|
||||
return ionTabs;
|
||||
}
|
||||
|
||||
// idk, return the original element so at least something animates and we don't have a null pointer
|
||||
return element;
|
||||
|
Reference in New Issue
Block a user