Removed duplicate closing calls for create event popover

This commit is contained in:
Alexis
2024-12-20 11:29:13 +01:00
parent eedbf1decb
commit 9f6d318a15

View File

@@ -36,8 +36,10 @@ function openEventCreatePopover() {
* @param e The closing event (can be keydown or click)
*/
function handleClosing(e: Event) {
popoverOpen.value = false
e.preventDefault()
popoverOpen.value = false
console.log(e)
}
</script>
@@ -54,8 +56,6 @@ function handleClosing(e: Event) {
:trap-focus="true"
class="pl-3 w-[30rem] max-w-full border-indigo-200 dark:bg-slate-950 dark:border-indigo-950"
@escape-key-down="handleClosing"
@focus-outside="handleClosing"
@interact-outside="handleClosing"
@pointer-down-outside="handleClosing"
>
<CalendarFormCreateEvent @event-created="handleClosing" />