Skip to content

Commit 2f1b99c

Browse files
authored
Merge pull request #127 from devforth/fix-enter-press-in-form
fix: prevent enter press from adding new item to array fields
2 parents f4f878f + a6313eb commit 2f1b99c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adminforth/spa/src/components/GroupsTable.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
/>
6565
<button
6666
v-if="!column.editReadonly"
67+
type="button"
6768
@click="setCurrentValue(column.name, currentValues[column.name], currentValues[column.name].length); focusOnLastInput(column.name)"
6869
class="flex items-center py-1 px-3 me-2 text-sm font-medium rounded-default text-gray-900 focus:outline-none bg-white rounded border border-gray-300 hover:bg-gray-100 hover:text-lightPrimary focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700"
6970
:class="{'mt-2': currentValues[column.name].length}"

0 commit comments

Comments
 (0)