Skip to content

Commit 7d47109

Browse files
committed
fix header menu selection indicator not showing
1 parent ed51c24 commit 7d47109

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/js/components/app-header.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
182182
)}
183183
{item.title}
184184
</Link>
185-
{page.url === item.href && (
185+
{page.url ===
186+
(typeof item.href === 'string'
187+
? item.href
188+
: item.href.url) && (
186189
<div className="absolute bottom-0 left-0 h-0.5 w-full translate-y-px bg-black dark:bg-white"></div>
187190
)}
188191
</NavigationMenuItem>

0 commit comments

Comments
 (0)