Skip to content

Commit cbb4e16

Browse files
authored
Merge pull request #6290 from GARY121github/fix/6289
fix: fixed Button components are highlighted in the sidebar
2 parents 66327ee + 87cd24f commit cbb4e16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/components/SistentNavigation

src/components/SistentNavigation/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const TOC = () => {
139139
<Link
140140
to={component.url}
141141
className={`toc-sub-heading toc-sub-inline components-item ${
142-
location.pathname.includes(component.url)
142+
location.pathname === component.url
143143
? "active"
144144
: ""
145145
}`}

0 commit comments

Comments
 (0)