@invisionag/iris-react-accordion
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -23,3 +23,2 @@ // @flow | ||
type DefaultProps = { | ||
open: boolean, | ||
startOpen: boolean, | ||
@@ -37,3 +36,2 @@ heading: Jsx, | ||
startOpen: false, | ||
open: false, | ||
heading: 'Click to toggle', | ||
@@ -48,3 +46,4 @@ }; | ||
componentWillReceiveProps({ open }: Props) { | ||
if (open !== this.state.open) this.toggleAccordion(open); | ||
if (typeof open !== 'undefined' && open !== this.state.open) | ||
this.toggleAccordion(open); | ||
} | ||
@@ -51,0 +50,0 @@ |
{ | ||
"name": "@invisionag/iris-react-accordion", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:ivx/iris.git", |
Sorry, the diff of this file is not supported yet
13456
199