fix: replace default enter key behavior (#2582)

This commit is contained in:
Michael Genson 2023-09-28 18:16:22 -05:00 committed by GitHub
parent 222d583d6f
commit ef805c4b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@
<v-card-title class="headline"> {{ $t('recipe.create-recipe') }} </v-card-title> <v-card-title class="headline"> {{ $t('recipe.create-recipe') }} </v-card-title>
<v-card-text> <v-card-text>
{{ $t('recipe.create-a-recipe-by-providing-the-name-all-recipes-must-have-unique-names') }} {{ $t('recipe.create-a-recipe-by-providing-the-name-all-recipes-must-have-unique-names') }}
<v-form ref="domCreateByName"> <v-form ref="domCreateByName" @submit.prevent>
<v-text-field <v-text-field
v-model="newRecipeName" v-model="newRecipeName"
:label="$t('recipe.recipe-name')" :label="$t('recipe.recipe-name')"
@ -17,6 +17,7 @@
:rules="[validators.required]" :rules="[validators.required]"
:hint="$t('recipe.new-recipe-names-must-be-unique')" :hint="$t('recipe.new-recipe-names-must-be-unique')"
persistent-hint persistent-hint
v-on:keyup.enter="createByName(newRecipeName)"
></v-text-field> ></v-text-field>
</v-form> </v-form>
</v-card-text> </v-card-text>