mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-13 03:21:20 +00:00
Fixed a bug that prevented you from logging&signup
This commit is contained in:
parent
46533fa53a
commit
112f07fbc4
2 changed files with 4 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
v-if="!showCaptcha"
|
||||
action="#"
|
||||
@submit.prevent="submitForm"
|
||||
@keydown.prevent="keyDownEvent"
|
||||
@keydown="keyDownEvent"
|
||||
>
|
||||
<div class="input">
|
||||
<div class="input-text">
|
||||
|
|
@ -104,6 +104,7 @@ export default {
|
|||
},
|
||||
keyDownEvent(event) {
|
||||
if (event.keyCode === 13) {
|
||||
event.preventDefault();
|
||||
this.submitForm();
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
v-if="!showCaptcha"
|
||||
action="#"
|
||||
@submit.prevent="formSubmit"
|
||||
@keydown.prevent="keyDownEvent"
|
||||
@keydown="keyDownEvent"
|
||||
>
|
||||
<div class="input">
|
||||
<div class="input-text">
|
||||
|
|
@ -116,6 +116,7 @@ export default {
|
|||
},
|
||||
keyDownEvent(event) {
|
||||
if (event.keyCode === 13) {
|
||||
event.preventDefault();
|
||||
this.formSubmit();
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue