mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-11 13:51:42 +00:00
add textarea/enter workaround
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
5f0f6b13b5
commit
a2d8b9a99a
14
Toolkit.js
14
Toolkit.js
@ -171,6 +171,20 @@ 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
|
// 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
|
// extjs will not overwrite value, but marks the field dirty and thus
|
||||||
// the reset button will be enabled (but clicking it changes nothing)
|
// the reset button will be enabled (but clicking it changes nothing)
|
||||||
|
Loading…
Reference in New Issue
Block a user