Merge pull request #7 from jambonz/bugfix/docs-active-items

Fix bug where docs submenu items with same slug get active state
This commit is contained in:
Dave Horton
2021-06-10 22:25:28 -04:00
committed by GitHub
+1 -1
View File
@@ -57,7 +57,7 @@ function Sidebar({data}) {
</div>
<ul className={classNames(subClasses)}>
{item.pages.map((page) => {
const isActiveItem = (parsedPath === page.path);
const isActiveItem = (parsedPath === page.path && parsedTab === item.path) && isActiveToggle;
const itemClasses = {
'ms': true,
'active': isActiveItem,