Skip to content

Commit dbb3128

Browse files
committed
fix: orga create form keyboard events
1 parent 08114c8 commit dbb3128

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/Organizations/OrganizationMembers.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<v-col cols="12" sm="8" md="3">
33
<h1 class="text-h1">{{ $t('organization.addTeamMember') }}</h1>
44
<p class="text--secondary">{{ $t('orginzation.memberAdd') }}</p>
5-
<v-form>
5+
<v-form @submit.prevent="">
66
<div v-for="(v, index) in $v.members.$each.$iter" :key="index">
77
<v-text-field
88
id="emailAddress"
@@ -16,6 +16,7 @@
1616
prepend-inner-icon="$vuetify.icons.email"
1717
:append-inner-icon="v.invited ? $vuetify.icons.email : ''"
1818
@blur="v.email.$touch"
19+
@keydown.enter="addMember"
1920
persistent-placeholder
2021
></v-text-field>
2122
</div>

src/components/Organizations/OrganizationTitle.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<v-col cols="12" sm="8" md="3">
33
<h1 class="text-h1">{{ $t('organization.createNewOrganization') }}</h1>
44
<p class="text--secondary">{{ $t('organization.createNameOfOrganization') }}</p>
5-
<v-form class="text-center">
5+
<v-form class="text-center" submit.prevent="">
66
<v-text-field
77
class="mt-6"
88
id="organizationName"
@@ -15,6 +15,7 @@
1515
:error-messages="titleErrors"
1616
prepend-inner-icon="$vuetify.icons.organization"
1717
@blur="$v.title.$touch()"
18+
@keydown.enter.prevent="handleCreateOrganization"
1819
persistent-placeholder
1920
>
2021
</v-text-field>

0 commit comments

Comments
 (0)