mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(tabs): fix tabs rootNav
This commit is contained in:
@@ -509,7 +509,7 @@ export class Tabs extends Ion {
|
||||
*/
|
||||
get rootNav(): NavController {
|
||||
let nav = this.parent;
|
||||
while (nav.parent) {
|
||||
while (nav && nav.parent) {
|
||||
nav = nav.parent;
|
||||
}
|
||||
return nav;
|
||||
|
||||
Reference in New Issue
Block a user