Roo/bootstrap/NavGroup.js
[roojs1] / roojs-bootstrap-debug.js
index e622442..2d1e471 100644 (file)
@@ -4365,11 +4365,11 @@ Roo.extend(Roo.bootstrap.NavGroup, Roo.bootstrap.Component,  {
             cls: 'nav' 
         };
         if (Roo.bootstrap.version == 4) {
-           if (this.type == 'pills') {
-               cfg.cls = ' nav-pills';
+           if (['nav','pills'].indexOf(this.type) != -1) {
+               cfg.cls = ' nav-' + this.type; 
            }
        } else {
-           if (['tabs','pills'].indexOf(this.type)!==-1) {
+           if (['tabs','pills'].indexOf(this.type) != -1) {
                cfg.cls += ' nav-' + this.type
            } else {
                if (this.type !== 'nav') {