feat(registration): support next input element with ENTER key
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5f5b03a8a0
commit
066e67c64f
@ -101,6 +101,11 @@
|
|||||||
<label for="firstname" class="block text-lg font-bold mb-2 sr-only">Vorname</label>
|
<label for="firstname" class="block text-lg font-bold mb-2 sr-only">Vorname</label>
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<input
|
<input
|
||||||
|
on:keydown={(e) => {
|
||||||
|
if (e.keyCode === 13) {
|
||||||
|
document.getElementById('lastname')?.focus();
|
||||||
|
}
|
||||||
|
}}
|
||||||
type="text"
|
type="text"
|
||||||
id="firstname"
|
id="firstname"
|
||||||
name="firstname"
|
name="firstname"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user