Skip to content

A self-hosted media server and file management system

add tab index to video edit form

aminnausinc2bcaffb52c0
diff --git a/resources/js/components/forms/EditVideo.vue b/resources/js/components/forms/EditVideo.vue
index 3973854d..9032a922 100755
--- a/resources/js/components/forms/EditVideo.vue
+++ b/resources/js/components/forms/EditVideo.vue
@@ -80,18 +80,18 @@ const handleSubmit = async () => {
<FormInputLabel :field="field"/>
- <FormTextArea v-if="field.type === 'textArea'" v-model="form.fields[field.name]" :field="field"/>
- <FormInput v-else v-model="form.fields[field.name]" :field="field" />
+ <FormTextArea v-if="field.type === 'textArea'" v-model="form.fields[field.name]" :field="field" :tabindex="index + 1"/>
+ <FormInput v-else v-model="form.fields[field.name]" :field="field" :tabindex="index + 1"/>
<ul class="text-sm text-red-600 dark:text-red-400">
<li v-for="(item, index) in form.errors[field.name]" :key="index">{{ item }}</li>
</ul>
</div>
<div class="relative flex flex-col-reverse sm:flex-row sm:justify-end gap-2 pt-1 w-full">
- <button @click="$emit('handleFinish')" type="button"
+ <button @click="$emit('handleFinish')" type="button" tabindex="97"
class="inline-flex items-center justify-center h-10 px-4 py-2 text-sm font-medium transition-colors border dark:border-neutral-600 rounded-md focus:outline-none "
:class="'focus:ring-1 focus:ring-neutral-100 dark:focus:ring-neutral-400 focus:ring-offset-1 hover:bg-neutral-100 dark:hover:bg-neutral-900'">Cancel</button>
- <button @click="handleSubmit" type="button"
+ <button @click="handleSubmit" type="button" tabindex="98"
class="inline-flex items-center justify-center h-10 px-4 py-2 text-sm font-medium text-white transition-colors border border-transparent rounded-md focus:outline-none "
:class="'focus:ring-1 focus:ring-violet-900 focus:ring-offset-1 bg-neutral-950 hover:bg-neutral-800 dark:hover:bg-neutral-900 '">Submit Details</button>
</div>