Roo/bootstrap/Card.js
authorAlan Knowles <alan@roojs.com>
Wed, 18 Nov 2020 04:48:48 +0000 (12:48 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Nov 2020 04:48:48 +0000 (12:48 +0800)
Roo/bootstrap/Card.js

index 6c6ecf9..f7af0f5 100644 (file)
@@ -379,6 +379,8 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component,  {
         if (this.rotateable) {
             this.el.select('.card-header',true).on('click', this.onToggleRotate, this);
         }
+        this.collapsableEl = this.el.select('.roo-collapsable').first();
+        this.footerEl = this.el.select('.card-footer').first();
         
     },
     getDragData : function(e)
@@ -619,8 +621,8 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component,  {
     
     onToggleRotate : function(e)
     {
-        this.el.select('.roo-collapsable').first().removeClass('show');
-        this.el.select('.roo-collapsable').first().removeClass('show');
+        this.collapsableEl.removeClass('show');
+        this.footerEl.removeClass('d-none');
         if (this.rotated) {
             
             this.el.select('.roo-collapsable').addClass('show');