Duplicate expense

This commit is contained in:
mchev
2026-04-07 19:00:07 +02:00
parent f17c7be5f0
commit beb2a43ed3
10 changed files with 382 additions and 4 deletions

View File

@@ -6,6 +6,7 @@
static
class="fixed inset-0 z-20 overflow-y-auto"
:open="show"
:initial-focus="initialFocus"
@close="$emit('close')"
>
<div
@@ -106,6 +107,14 @@ const props = defineProps({
type: Boolean,
default: false,
},
/**
* Optional ref (template ref) for the element that should receive focus when the dialog opens.
* When omitted, Headless UI focuses the first focusable control (often an input).
*/
initialFocus: {
type: Object,
default: null,
},
})
const slots = useSlots()