Skip to content

Commit

Permalink
Fix mobile dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
creeperkatze committed Dec 31, 2024
1 parent 1385dc6 commit 8e38b3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/DropdownDrawer.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="dropdown flex flex-col" @click="toggleDropdown">
<div class="dropdown flex flex-col" @click="setDropdown(!dropdown)">
<NuxtLink :to="localePath(titleLink)" type="button" class="inline-flex navbar-element items-center">
{{ title }}
<IconDown class="size-4 transform transition-all" :class="{ 'rotate-180': dropdownOpen }" />
Expand Down Expand Up @@ -47,11 +47,11 @@ watch(() => props.drawerOpen, (newVal) =>
{
if (!newVal)
{
toggleDropdown(false)
setDropdown(false)
}
})
const toggleDropdown = (state) =>
const setDropdown = (state) =>
{
dropdownOpen.value = state
}
Expand Down

0 comments on commit 8e38b3e

Please sign in to comment.