ui: autofocus after rendering text fields for 2fa
Co-Authored-by: Thomas Lamprecht <t.lamprecht@proxmox.com> Tested-by: Oguz Bektas <o.bektas@proxmox.com> Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
This commit is contained in:
parent
a65eb0ec29
commit
b5c6088130
@ -338,6 +338,7 @@ Ext.define('PBS.login.TfaWindow', {
|
|||||||
// non-visible tab, so we can just directly use the valid param
|
// non-visible tab, so we can just directly use the valid param
|
||||||
this.getViewModel().set('canConfirm', valid);
|
this.getViewModel().set('canConfirm', valid);
|
||||||
},
|
},
|
||||||
|
afterrender: field => field.focus(), // ensure focus after initial render
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user