mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
use isActive instead of isExactActive to allow url props to still show link as active
This commit is contained in:
parent
7d1681fbf1
commit
558e4c8b3d
1 changed files with 2 additions and 2 deletions
|
|
@ -1,11 +1,11 @@
|
|||
<template>
|
||||
<RouterLink :to="to" v-slot="{ href, route, navigate, isActive, isExactActive }" custom>
|
||||
<RouterLink :to="to" v-slot="{ href, route, navigate, isActive }" custom>
|
||||
<a
|
||||
:href="href"
|
||||
@click="handleNavigate($event, navigate)"
|
||||
type="button"
|
||||
:class="[
|
||||
isExactActive
|
||||
isActive
|
||||
? 'bg-blue-100 text-blue-800 group:text-blue-800 dark:bg-zinc-800 dark:text-blue-300'
|
||||
: 'hover:bg-gray-100 dark:hover:bg-zinc-700'
|
||||
]"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue