Skip to content

Commit 1f17594

Browse files
committed
fix(CNavGroup): add the missing href attribute to the toggler
1 parent c76e36f commit 1f17594

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/coreui-react/src/components/nav/CNavGroup.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ export const CNavGroup: PolymorphicRefForwardingComponent<'li', CNavGroupProps>
124124
ref={ref}
125125
>
126126
{toggler && (
127-
<a className="nav-link nav-group-toggle" onClick={(event) => handleTogglerOnCLick(event)}>
127+
<a
128+
className="nav-link nav-group-toggle"
129+
href="#"
130+
onClick={(event) => handleTogglerOnCLick(event)}
131+
>
128132
{toggler}
129133
</a>
130134
)}

0 commit comments

Comments
 (0)