roojs-ui.js
[roojs1] / roojs-ui-debug.js
index 78995ad..b3c69c4 100644 (file)
@@ -20560,6 +20560,7 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
         store.each(function(r){
             if(r.data[prop] == value){
                 record = r;
+               srec = r;
                 return false;
             }
             if (r.data.cn && r.data.cn.length) {
@@ -20589,9 +20590,10 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
     
     selectActive : function ()
     {
-        
-       var stack = [];
-       var rec =  this.findRecordInStore(this.store, this.hiddenName, this.getValue());
+       // if store is not loaded, then we will need to wait for that to happen first.
+        var stack = [];
+       this.findRecordInStore(this.store, this.hiddenName, this.getValue(), stack);
+       
        
     }