Skip to content

Commit 3b4f5a3

Browse files
committed
Properly set iniial expanded state
1 parent 8f1a308 commit 3b4f5a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const Accordion = React.createClass({
3434

3535
getInitialState() {
3636
return {
37-
is_visible: false,
37+
is_visible: this.props.expanded,
3838
height: null,
3939
content_height: 0
4040
};

0 commit comments

Comments
 (0)