nicolium Make sidebar active item state consistent

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-31 19:40:55 +00:00
parent 4e80b06c1b
commit 24b6f75875

View File

@@ -30,7 +30,7 @@ const SidebarNavigationLink: React.FC<ISidebarNavigationLink> = React.memo(
const LinkComponent = (to === undefined ? 'button' : Link) as typeof Link;
const isActive = matchRoute({ to }) !== false;
const isActive = matchRoute({ to, ...rest }) !== false;
const handleClick: React.EventHandler<React.MouseEvent> = (e) => {
if (onClick) {
@@ -43,7 +43,7 @@ const SidebarNavigationLink: React.FC<ISidebarNavigationLink> = React.memo(
return (
<li>
<LinkComponent
activeOptions={{ exact: true }}
activeOptions={{ exact: true, includeSearch: false }}
activeProps={{ className: '⁂-sidebar-navigation-link--active' }}
to={to}
ref={ref}