Skip to content

Commit 266155c

Browse files
committed
fix: hold shift still open the share modal
1 parent 156b551 commit 266155c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

apps/frontend/app/components/chat/thread/ShareThreadAlertDialog.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ const {
2828
}>()
2929
3030
const { $auth } = useNuxtApp()
31+
const open = ref(false)
3132
</script>
3233

3334
<template>
34-
<AlertDialog>
35+
<AlertDialog v-model:open="open">
3536
<Tooltip :delay-duration="500">
3637
<AlertDialogTrigger v-show="!thread.userId || (thread.userId === $auth?.user?.sub)" as-child>
37-
<TooltipTrigger as-child @pointerdown.stop.prevent @click.shift.stop.prevent="callback()">
38+
<TooltipTrigger as-child @pointerdown.stop.prevent @click.shift.stop.prevent="open = false; callback()">
3839
<slot />
3940
</TooltipTrigger>
4041
<TooltipContent side="bottom" :side-offset="6">

0 commit comments

Comments
 (0)