Made event creation dialog behaviour the same

This commit is contained in:
Alexis
2025-04-25 17:33:45 +02:00
parent 60bbb6f48f
commit 7b0bb1e939
2 changed files with 3 additions and 4 deletions

View File

@@ -42,6 +42,7 @@ const breakpoints = useBreakpoints(
<UiDialog v-model:open="isDialogOpen">
<UiDialogContent
class="border-indigo-200 dark:bg-slate-950 dark:border-indigo-950"
:trap-focus="true"
@escape-key-down.prevent="handleClosing"
@pointer-down-outside.prevent="handleClosing"
>

View File

@@ -77,11 +77,9 @@ function handleClosing() {
<UiDialog v-model:open="isDialogOpen">
<UiDialogContent
class="border-indigo-200 dark:bg-slate-950 dark:border-indigo-950"
:disable-outside-pointer-events="true"
:trap-focus="true"
@focus-outside="handleClosing"
@interact-outside="handleClosing"
@close-auto-focus="(e) => e.preventDefault()"
@escape-key-down.prevent="handleClosing"
@pointer-down-outside.prevent="null"
>
<UiDialogTitle>
{{ $t("entity.calendar.event.addSingle") }}