Roo/bootstrap/ComboBox.js
authorAlan Knowles <alan@roojs.com>
Thu, 29 Nov 2018 03:59:16 +0000 (11:59 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 29 Nov 2018 03:59:16 +0000 (11:59 +0800)
Roo/bootstrap/ComboBox.js

index c58e4eb..796c014 100644 (file)
@@ -769,7 +769,9 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, {
         */
             
         if(!this.tpl){
-            this.tpl = '<li><a class="dropdown-item" href="#">{' + this.displayField + '}</a></li>';
+            this.tpl = Roo.bootstrap.version == 4 ?
+                '<a class="dropdown-item" href="#">{' + this.displayField + '}</a>';
+                '<a class="dropdown-item" href="#">{' + this.displayField + '}</a>';
         }
 
         this.view = new Roo.View(this.list, this.tpl, {