From c731e7b345ce4b0f1f83259911457b177b02ac23 Mon Sep 17 00:00:00 2001 From: Renaud Le Gac <legac@cppm.in2p3.fr> Date: Fri, 21 Feb 2014 15:06:38 +0100 Subject: [PATCH] Improved logic in ComboBox.SelectFirstItem. --- static/plugin_dbui/src/form/field/ComboBox.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/plugin_dbui/src/form/field/ComboBox.js b/static/plugin_dbui/src/form/field/ComboBox.js index 545655db..a8d3ad98 100644 --- a/static/plugin_dbui/src/form/field/ComboBox.js +++ b/static/plugin_dbui/src/form/field/ComboBox.js @@ -70,7 +70,9 @@ Ext.define('App.form.field.ComboBox', { var record; + // the store is not ready, reschedule the request if (!this.store.getCount()) { + this.store.on('load', this.selectFirstItem, this, {single: true}); return; } -- GitLab