We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4d73d6 commit e7e53daCopy full SHA for e7e53da
1 file changed
ui/src/views/dashboard/VerifyTwoFa.vue
@@ -75,6 +75,11 @@ export default {
75
created () {
76
this.initForm()
77
},
78
+ mounted () {
79
+ this.$nextTick(() => {
80
+ this.focusInput()
81
+ })
82
+ },
83
methods: {
84
initForm () {
85
this.formRef = ref()
@@ -83,6 +88,12 @@ export default {
88
code: [{ required: true, message: this.$t('message.error.authentication.code') }]
89
})
90
91
+ focusInput () {
92
+ const inputElement = this.$refs.code.$el.querySelector('input[type=password]')
93
+ if (inputElement) {
94
+ inputElement.focus()
95
+ }
96
86
97
handleSubmit () {
87
98
this.formRef.value.validate().then(() => {
99
const values = toRaw(this.form)
0 commit comments