From 5ab537c3ce4713db134abb0f0c87e94574ee6013 Mon Sep 17 00:00:00 2001 From: "Md. Moshfiqur Rahman Rony" <15203012@iubat.edu> Date: Wed, 27 Aug 2025 12:36:47 +0600 Subject: [PATCH] fix(nav): use activeUrl instead of currentItem for nav item current state Changed current prop from `currentItem?.href === item.href` to `activeUrl === item.href` to simplify navigation state logic and ensure current item highlighting is based on the actual active URL rather than the locally tracked currentItem state. --- .../application/app-navigation/base-components/nav-list.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/application/app-navigation/base-components/nav-list.tsx b/components/application/app-navigation/base-components/nav-list.tsx index b320eec..3e247ee 100644 --- a/components/application/app-navigation/base-components/nav-list.tsx +++ b/components/application/app-navigation/base-components/nav-list.tsx @@ -72,7 +72,7 @@ export const NavList = ({ activeUrl, items, className }: NavListProps) => { badge={item.badge} icon={item.icon} href={item.href} - current={currentItem?.href === item.href} + current={activeUrl === item.href} open={open && currentItem?.href === item.href} > {item.label}