[pbs-devel] [PATCH v2 1/2] ui: autofocus after rendering text fields for 2fa
Oguz Bektas
o.bektas at proxmox.com
Thu Feb 4 16:32:46 CET 2021
Co-Authored-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
Tested-by: Oguz Bektas <o.bektas at proxmox.com>
Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
yes indeed, much better with the arrow function, thanks thomas :)
www/LoginView.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/LoginView.js b/www/LoginView.js
index f7380339..c7f3e857 100644
--- a/www/LoginView.js
+++ b/www/LoginView.js
@@ -338,6 +338,7 @@ Ext.define('PBS.login.TfaWindow', {
// non-visible tab, so we can just directly use the valid param
this.getViewModel().set('canConfirm', valid);
},
+ afterrender: field => field.focus(), // ensure focus after initial render
},
},
--
2.20.1
More information about the pbs-devel
mailing list