fix(Drawer/Modal/Slideover): disable close autofocus

Resolves #3227
This commit is contained in:
Benjamin Canac
2025-02-18 10:59:13 +01:00
parent e64fd290b2
commit ae30f9423d
3 changed files with 14 additions and 5 deletions

View File

@@ -101,11 +101,14 @@ const contentEvents = computed(() => {
return {
pointerDownOutside: (e: Event) => e.preventDefault(),
interactOutside: (e: Event) => e.preventDefault(),
escapeKeyDown: (e: Event) => e.preventDefault()
escapeKeyDown: (e: Event) => e.preventDefault(),
closeAutoFocus: (e: Event) => e.preventDefault()
}
}
return {}
return {
closeAutoFocus: (e: Event) => e.preventDefault()
}
})
const ui = computed(() => modal({