Skip to content

Commit 0621a91

Browse files
committed
fix: focus issue one input in join view
1 parent 962e339 commit 0621a91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/Join.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</div>
1919
</label>
2020

21-
<input type="email" class="icon-padding" id="email" name="email" maxlength="255" v-model="form.email.val" placeholder="[email protected]" @keydown="form.valid=false" ref="focusInput" disabled="true" required />
21+
<input type="email" class="icon-padding" id="email" name="email" maxlength="255" v-model="form.email.val" placeholder="[email protected]" @keydown="form.valid=false" disabled="true" required />
2222
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" v-if="form.email.val && form.email.val.length > -1 && (form.email.valid && form.email.unique)" class="input-icon valid">
2323
<title></title>
2424
<polygon class="cls-1" points="19.69 37.19 7.23 24.73 10.77 21.2 19.69 30.12 37.23 12.58 40.77 16.11 19.69 37.19"/>
@@ -46,7 +46,7 @@
4646
</div>
4747
</label>
4848

49-
<input type="text" class="input-text icon-padding" id="username" name="username" maxlength="50" v-model="form.username.val" placeholder="your-username" @keydown="form.valid=false" required />
49+
<input type="text" class="input-text icon-padding" id="username" ref="focusInput" name="username" maxlength="50" v-model="form.username.val" placeholder="your-username" @keydown="form.valid=false" required />
5050
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" v-if="form.username.val && form.username.val.length > -1 && (form.username.valid && form.username.unique)" class="input-icon valid">
5151
<title></title>
5252
<polygon class="cls-1" points="19.69 37.19 7.23 24.73 10.77 21.2 19.69 30.12 37.23 12.58 40.77 16.11 19.69 37.19"/>

0 commit comments

Comments
 (0)