From 65ed0bf8b8f325463cf3962e3c6d2361ad0162c0 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Wed, 26 May 2021 10:58:38 +0200 Subject: [PATCH] Toolkit: remove textarea fix Signed-off-by: Dominik Csapak --- src/Toolkit.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Toolkit.js b/src/Toolkit.js index b38e504..30dffc2 100644 --- a/src/Toolkit.js +++ b/src/Toolkit.js @@ -223,20 +223,6 @@ Ext.define('Proxmox.UnderlayPool', { }, }); -// 'Enter' in Textareas and aria multiline fields should not activate the -// defaultbutton, fixed in extjs 6.0.2 -Ext.define('PVE.panel.Panel', { - override: 'Ext.panel.Panel', - - fireDefaultButton: function(e) { - if (e.target.getAttribute('aria-multiline') === 'true' || - e.target.tagName === "TEXTAREA") { - return true; - } - return this.callParent(arguments); - }, -}); - // if the order of the values are not the same in originalValue and value // extjs will not overwrite value, but marks the field dirty and thus // the reset button will be enabled (but clicking it changes nothing) -- 2.39.5