From 6738ac76c406fbd704364dc49b4f1012dac7b4c8 Mon Sep 17 00:00:00 2001
From: Alexis <35.alexis.pele@gmail.com>
Date: Sat, 8 Jun 2024 22:00:07 +0200
Subject: [PATCH] Added loading and cancelling to deleting popover
---
components/calendar/form/DeleteEvent.vue | 63 +++++++++++++++++++-----
components/calendar/form/UpdateEvent.vue | 6 +--
2 files changed, 55 insertions(+), 14 deletions(-)
diff --git a/components/calendar/form/DeleteEvent.vue b/components/calendar/form/DeleteEvent.vue
index 224d563..e36854f 100644
--- a/components/calendar/form/DeleteEvent.vue
+++ b/components/calendar/form/DeleteEvent.vue
@@ -1,9 +1,13 @@
@@ -39,6 +69,10 @@ async function handleAction() {
:disable-outside-pointer-events="true"
:trap-focus="true"
class="min-w-96 bg-slate-900 border-slate-800"
+ @escape-key-down="handleClosing"
+ @focus-outside="handleClosing"
+ @interact-outside="handleClosing"
+ @pointer-down-outside="handleClosing"
>