Roo/bootstrap/Button.js
authorJulian Knowles <julian@roojs.com>
Fri, 24 Jan 2014 10:24:06 +0000 (18:24 +0800)
committerJulian Knowles <julian@roojs.com>
Fri, 24 Jan 2014 10:24:06 +0000 (18:24 +0800)
Roo/bootstrap/Button.js

index d586d87..0ec831f 100644 (file)
@@ -61,7 +61,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
         }
         
         
-        if (this.parent().btn) {
+        if (this.parent().btn&&this.parent().type='ButtonGroup') {
             cfg.cls='btn';
             if (this.parentType != 'Navbar') {
                 this.weight = this.weight.length ?  this.weight : 'default';