Roo/bootstrap/Card.js
authorAlan Knowles <alan@roojs.com>
Mon, 16 Nov 2020 03:26:34 +0000 (11:26 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 16 Nov 2020 03:26:34 +0000 (11:26 +0800)
Roo/bootstrap/Card.js

index c0b03f4..d8e7fc9 100644 (file)
@@ -225,16 +225,16 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component,  {
             cls : 'card-body',
             cn : []
         };
-       
+       var obody = body;
        if (this.collapsable) {
-           body = {
+           obody = {
                tag: 'div',
                cls : 'roo-collapsable collapse ' + (this.collapsed ? '' : 'show'),
                cn : [  body ]
            };
        }
        
-        cfg.cn.push(body);
+        cfg.cn.push(obody);
         
         if (this.title.length) {
             body.cn.push({