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 (#381)
  • Loading branch information
jardakotesovec authored Jul 17, 2024
1 parent 8ac7bbd commit 28b967b
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=""
>
<input
v-for="(value, name) in hiddenFields"
:key="name"
Expand Down

0 comments on commit 28b967b

Please sign in to comment.