Skip to content

Commit

Permalink
fix(editor): Focus mfa token input (no-changelog) (n8n-io#7610)
Browse files Browse the repository at this point in the history
Github issue / Community forum post (link here to close automatically):
  • Loading branch information
RicardoE105 authored Nov 5, 2023
1 parent 5790e25 commit b11c4de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/editor-ui/src/views/MfaView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default defineComponent({
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 {
name,
initialValue: '',
Expand All @@ -189,6 +189,7 @@ export default defineComponent({
maxlength,
capitalize: true,
validateOnBlur: false,
focusInitially: focus,
},
};
},
Expand Down

0 comments on commit b11c4de

Please sign in to comment.