email field autofocus during registration

This commit is contained in:
les
2020-01-29 18:50:45 +01:00
parent 8bc226eb4c
commit ba1bf9e51c

View File

@@ -42,10 +42,12 @@ export default {
return !this.user.password || !this.user.email || !this.user.description
}
},
mounted () {
this.$refs.email.focus()
},
methods: {
close () {
this.$router.replace('/')
this.$emit('close')
},
async register () {
this.loading = true