all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH v2 1/2] ui: autofocus after rendering text fields for 2fa
@ 2021-02-04 15:32 Oguz Bektas
  2021-02-04 15:32 ` [pbs-devel] [PATCH 2/2] ui: wrap regexText in gettext() for translations Oguz Bektas
  2021-02-05  5:56 ` [pbs-devel] applied: [PATCH v2 1/2] ui: autofocus after rendering text fields for 2fa Thomas Lamprecht
  0 siblings, 2 replies; 4+ messages in thread
From: Oguz Bektas @ 2021-02-04 15:32 UTC (permalink / raw)
  To: pbs-devel; +Cc: Oguz Bektas, Thomas Lamprecht

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>
---

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-05  5:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 15:32 [pbs-devel] [PATCH v2 1/2] ui: autofocus after rendering text fields for 2fa Oguz Bektas
2021-02-04 15:32 ` [pbs-devel] [PATCH 2/2] ui: wrap regexText in gettext() for translations Oguz Bektas
2021-02-05  5:56   ` [pbs-devel] applied: " Thomas Lamprecht
2021-02-05  5:56 ` [pbs-devel] applied: [PATCH v2 1/2] ui: autofocus after rendering text fields for 2fa Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal