fix(editor): Focus mfa token input (no-changelog) (#7610)

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
Ricardo Espinoza 2023-11-04 20:34:05 -04:00 committed by GitHub
parent 5790e251b8
commit b11c4de039
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,7 +179,7 @@ export default defineComponent({
MFA_AUTHENTICATION_RECOVERY_CODE_INPUT_MAX_LENGTH, MFA_AUTHENTICATION_RECOVERY_CODE_INPUT_MAX_LENGTH,
); );
}, },
formField(name: string, label: string, placeholder: string, maxlength: number) { formField(name: string, label: string, placeholder: string, maxlength: number, focus = true) {
return { return {
name, name,
initialValue: '', initialValue: '',
@ -189,6 +189,7 @@ export default defineComponent({
maxlength, maxlength,
capitalize: true, capitalize: true,
validateOnBlur: false, validateOnBlur: false,
focusInitially: focus,
}, },
}; };
}, },