From: Alan Knowles Date: Wed, 18 Nov 2020 04:48:48 +0000 (+0800) Subject: Roo/bootstrap/Card.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=998b975bc3d277519a30685a44c8526e168c1722 Roo/bootstrap/Card.js --- diff --git a/Roo/bootstrap/Card.js b/Roo/bootstrap/Card.js index 6c6ecf9b4a..f7af0f5fed 100644 --- a/Roo/bootstrap/Card.js +++ b/Roo/bootstrap/Card.js @@ -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');