Skip to content

Commit bc52c78

Browse files
authored
Merge pull request #258 from Codebrahma/card_bug
🐛 Fix expanded icon bug on Card
2 parents da077d9 + 2f5a7d2 commit bc52c78

File tree

2 files changed

+642
-5707
lines changed

2 files changed

+642
-5707
lines changed

lib/card/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ class Card extends React.Component {
2020
};
2121

2222
renderFooter = () => {
23-
const { theme, actions, footer } = this.props;
23+
const {
24+
theme, expandedContent, actions, footer,
25+
} = this.props;
2426
const { expanded } = this.state;
2527

2628
if (footer !== null) {
@@ -50,7 +52,7 @@ class Card extends React.Component {
5052
</div>
5153
{/* eslint-disable jsx-a11y/click-events-have-key-events */}
5254
{/* eslint-disable jsx-a11y/no-static-element-interactions */}
53-
<div {...iconProps} />
55+
{expandedContent !== null && <div {...iconProps} />}
5456
</div>
5557
);
5658
}

0 commit comments

Comments
 (0)