Get correct navigation link id on first render
This commit is contained in:
parent
fa2c9e46ed
commit
ec9e9e8dfb
|
@ -37,6 +37,9 @@
|
||||||
var $menus = $('[role="navigation"] li.active', el);
|
var $menus = $('[role="navigation"] li.active', el);
|
||||||
if ($menus.size()) {
|
if ($menus.size()) {
|
||||||
activeMenuId = $menus[0].id;
|
activeMenuId = $menus[0].id;
|
||||||
|
$menus.find('li.active').first().each(function () {
|
||||||
|
activeMenuId = this.id;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue