Added input focus on entity forms

This commit is contained in:
Alexis
2025-08-11 20:23:25 +02:00
parent a5a232bac7
commit be32a018c6
4 changed files with 16 additions and 0 deletions

View File

@@ -17,6 +17,9 @@ onMounted(() => {
type FormTabs = "global" | "months" | "today"
const activeTab = ref<FormTabs>("global")
const newCalendarName = shallowRef<HTMLInputElement>()
useFocus(newCalendarName, { initialValue: true })
/**
* === Form Validation ===
*/
@@ -85,6 +88,7 @@ function handleFormCancel() {
</UiTabsList>
<UiTabsContent value="global" class="grid gap-4">
<input
ref="newCalendarName"
id="new-calendar-name"
v-model="calendarSkeleton.name"
type="text"