From 998b975bc3d277519a30685a44c8526e168c1722 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 18 Nov 2020 12:48:48 +0800 Subject: [PATCH] Roo/bootstrap/Card.js --- Roo/bootstrap/Card.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'); -- 2.39.2