Roo/form/ComboNested.js
authorAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2020 07:50:12 +0000 (15:50 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2020 07:50:12 +0000 (15:50 +0800)
Roo/form/ComboNested.js

index d9661da..a541600 100644 (file)
@@ -221,7 +221,17 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
      
     
     // -- store handlers..
-    
+    // private
+    onBeforeLoad : function()
+    {
+        if(!this.hasFocus){
+            return;
+        }
+        this.innerList[0].update(this.loadingText ?
+               '<div class="loading-indicator">'+this.loadingText+'</div>' : '');
+        this.restrictHeight();
+        this.selectedIndex = -1;
+    },
     // private
     onLoad : function(a,b,c,d)
     {