We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f083d9f commit 28398ebCopy full SHA for 28398eb
src/client/rsg-components/TableOfContents/TableOfContents.tsx
@@ -64,7 +64,7 @@ export default class TableOfContents extends Component<TableOfContentsProps> {
64
id: useRouterLinks ? useHashId : false,
65
});
66
67
- const selected = !!(href && windowHash.indexOf(href) === 0);
+ const selected = href === windowHash;
68
69
if (containsSelected || selected) {
70
childrenContainSelected = true;
0 commit comments