Commit f3854ce6 authored by Dietmar Maurer's avatar Dietmar Maurer

ComboGrid.js: allow to select empty value

parent 204355df
......@@ -13,6 +13,20 @@ Ext.define('PVE.form.ComboGrid', {
return (count > 10) ? 10*lh : 26+count*lh;
},
// hack: allow to select empty value
// seems extjs does not allow that when 'editable == false'
onKeyUp: function(e, t) {
var me = this;
var key = e.getKey();
if (!me.editable && me.allowBlank && !me.multiSelect &&
(key == e.BACKSPACE || key == e.DELETE)) {
me.setValue('');
}
me.callParent(arguments);
},
// copied from ComboBox
createPicker: function() {
var me = this,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment