Skip to content

Commit

Permalink
pkp/pkp-lib#9884 Prevent default form behaviour when enter is hit wit…
Browse files Browse the repository at this point in the history
…hin form with one input (pkp#383)
  • Loading branch information
jardakotesovec authored Jul 17, 2024
1 parent 8b8ba22 commit 2fb3504
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Form/Form.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<template>
<form class="pkpForm -pkpClearfix" :method="method" :action="action">
<form
class="pkpForm -pkpClearfix"
:method="method"
:action="action"
@keydown.enter.prevent=""
>
<form-locales
v-if="availableLocales.length > 1"
:primaryLocaleKey="primaryLocale"
Expand Down

0 comments on commit 2fb3504

Please sign in to comment.