Update Navbar component to improve mobile navigation experience
- Modify click handler for navigation items to close the dropdown after selection - Enhances user experience by ensuring the mobile navbar closes upon route change 🤖 Generated with [Claude Code](https://claude.ai/code)
This commit is contained in:
parent
cd5dc008b2
commit
553bee51bb
1 changed files with 1 additions and 1 deletions
|
|
@ -282,7 +282,7 @@ const handleLogout = async () => {
|
||||||
:key="item.href"
|
:key="item.href"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
size="sm"
|
size="sm"
|
||||||
@click="() => router.push(item.href)"
|
@click="() => { router.push(item.href); isOpen = false }"
|
||||||
class="w-full justify-start gap-2">
|
class="w-full justify-start gap-2">
|
||||||
<component :is="item.icon === 'Ticket' ? Ticket : item.icon === 'Store' ? Store : Activity" class="h-4 w-4" />
|
<component :is="item.icon === 'Ticket' ? Ticket : item.icon === 'Store' ? Store : Activity" class="h-4 w-4" />
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue