From 2ed68cc4abeaae86bb70cb321ce2f029c421fa46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87a=C4=9Fatay=20=C3=87ivici?= Date: Sun, 10 Dec 2017 12:57:44 +0300 Subject: [PATCH] Fixed #244 --- src/components/panel/Panel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/panel/Panel.js b/src/components/panel/Panel.js index 97e19dbe22..a8e0456663 100644 --- a/src/components/panel/Panel.js +++ b/src/components/panel/Panel.js @@ -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 } @@ -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 });