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

index 7d25c99..4bf769d 100644 (file)
@@ -146,7 +146,7 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
             this.tpl = new Roo.Template({
                 html :  '<div class="'+cls+'-item '+cls+'-item-{cn:this.isEmpty}">{' + this.displayField + '}</div>',
                 isEmpty: function (value, allValues) {
-                    return value.length ? 'has-children' : 'no-children'
+                    return value && value.length ? 'has-children' : 'no-children'
                 }
             });
         }