Skip to content

Commit

Permalink
shadowed menu ref in AvatarGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
wssheldon committed Nov 29, 2023
1 parent 638b2d0 commit c027fb4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dispatch/static/dispatch/src/participant/AvatarGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const props = defineProps({
},
})
const menu = ref(false)
const isMenuOpen = ref(false)
let orderedParticipants = ref([])
const hoveredParticipant = ref("")
const searchQuery = ref("")
useHotKey(["Meta", "Shift", "p"], () => {
if (!menu.value) {
if (!isMenuOpen.value) {
toggleMenu()
}
})
Expand Down Expand Up @@ -83,8 +83,8 @@ const getAvatarGradient = (participant) => {
}
const toggleMenu = () => {
menu.value = !menu.value
if (!menu.value) {
isMenuOpen.value = !isMenuOpen.value
if (!isMenuOpen.value) {
hoveredParticipant.value = ""
}
}
Expand Down

0 comments on commit c027fb4

Please sign in to comment.