Roo/bootstrap/NavItem.js
[roojs1] / Roo / bootstrap / NavItem.js
index fa17071..87571a2 100644 (file)
@@ -100,18 +100,16 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component,  {
        if (this.button_weight.length) {
            cfg.tag = this.href ? 'a' : 'button';
            cfg.html = this.html || '';
-           cfg.cls += ' btn' + (this.btn_outline ? '-outline' : '') + this.button_weight;
+           cfg.cls += ' btn btn' + (this.btn_outline ? '-outline' : '') + '-' + this.button_weight;
            if (this.href) {
                cfg.href = this.href;
            }
            if (this.fa) {
                 cfg.html = '<i class="fa fas fa-'+this.fa+'"></i> <span>' + this.html + '</span>';
             }
-           if (this.menu) {
-                
-                cfg.cn[0].html += " <span class='caret'></span>";
-             
-            }
+           
+           // menu .. should add dropdown-menu class - so no need for carat..
+           
            if (this.badge !== '') {
                  
                 cfg.html += ' <span class="badge badge-secondary">' + this.badge + '</span>';