[pve-devel] [PATCH manager] dc/Backup: do not focus node selector on window focus

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jul 24 16:40:20 CEST 2017


Do not focus anything here in the case he backup window gains focus
again. Else, if we click outside of the window the nodefield gets
always focused again - even if another field was focused previously.
This is a bit confusing, rather have no field focused at all -
especially as a blank value will be often used here.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---

This also improves the behavior in combination with my
"ComboGrid: open picker also when focusing an editable field"
patch.

 www/manager6/dc/Backup.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index f736b41f..235bea6f 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -2,6 +2,8 @@ Ext.define('PVE.dc.BackupEdit', {
     extend: 'PVE.window.Edit',
     alias: ['widget.pveDcBackupEdit'],
 
+    defaultFocus: undefined,
+
     initComponent : function() {
          var me = this;
 
-- 
2.11.0





More information about the pve-devel mailing list