fix: settings navigation (#1389)
This commit is contained in:
parent
c28c95e36c
commit
85be61a316
2 changed files with 9 additions and 1 deletions
|
@ -9,6 +9,7 @@ const props = defineProps<{
|
|||
disabled?: boolean
|
||||
external?: true
|
||||
large?: true
|
||||
match?: boolean
|
||||
}>()
|
||||
|
||||
const router = useRouter()
|
||||
|
@ -39,7 +40,7 @@ useCommand({
|
|||
:to="to"
|
||||
:external="external"
|
||||
exact-active-class="text-primary"
|
||||
:class="disabled ? 'op25 pointer-events-none ' : ''"
|
||||
:class="disabled ? 'op25 pointer-events-none ' : match ? 'text-primary' : ''"
|
||||
block w-full group focus:outline-none
|
||||
:tabindex="disabled ? -1 : null"
|
||||
@click="to ? $scrollToTop() : undefined"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue