Skip to content

Commit

Permalink
fix(Collapse): accordian mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkahn committed Jul 15, 2019
1 parent 991ba8a commit 56b031a
Show file tree
Hide file tree
Showing 2 changed files with 233 additions and 114 deletions.
2 changes: 1 addition & 1 deletion src/collapse/collapse.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class Collapse extends React.Component {
let isExpanded = false;

if (this.props.accordion) {
isExpanded = expandedKeys[0] === key;
isExpanded = String(expandedKeys[0]) === String(key);
} else {
isExpanded = expandedKeys.some(expandedKey => {
if (
Expand Down
Loading

0 comments on commit 56b031a

Please sign in to comment.