Commit 22d2efca authored by Dietmar Maurer's avatar Dietmar Maurer

ComboGrid: fix editable config

parent b1763710
......@@ -74,9 +74,12 @@ Ext.define('PVE.form.ComboGrid', {
initComponent: function() {
var me = this;
if (me.initialConfig.editable === undefined) {
me.editable = false;
}
Ext.apply(me, {
queryMode: 'local',
editable: false,
matchFieldWidth: false
});
......@@ -127,7 +130,7 @@ Ext.define('PVE.form.ComboGrid', {
def = rec.data[me.valueField];
me.setValue(def, true);
} else {
me.setValue('', true);
me.setValue(me.editable ? def : '', true);
}
}
}
......
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