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