Roo/form/ComboNested.js
authorAlan Knowles <alan@roojs.com>
Mon, 10 Feb 2020 06:36:53 +0000 (14:36 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 10 Feb 2020 06:36:53 +0000 (14:36 +0800)
Roo/form/ComboNested.js

index 0e7828f..c0d7ed8 100644 (file)
@@ -291,7 +291,8 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
         
         if (!ix.length) {
             this.setFromData({});
-            this.stores[opts.list+1].loadData( [] );
+            var str = this.stores[opts.list+1];
+            str.loadData( str.reader.readerType == 'json' ? { data : [] } : [] );
             return;
         }