Skip to content

Commit

Permalink
Fixed #244
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Dec 10, 2017
1 parent a556d1f commit 2ed68cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/panel/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export class Panel extends Component {
static defaultProps = {
id: null,
header: null,
toggleable: false,
toggleable: null,
style: null,
className: null,
collapsed: false,
collapsed: null,
onExpand: null,
onCollapse: null
}
Expand Down Expand Up @@ -52,7 +52,7 @@ export class Panel extends Component {
}

componentWillReceiveProps(nextProps) {
if(nextProps.collapsed !== this.state.collapsed) {
if(nextProps.collapsed != null && nextProps.collapsed !== this.state.collapsed) {
this.setState({
collapsed: nextProps.collapsed
});
Expand Down

0 comments on commit 2ed68cc

Please sign in to comment.