Merge pull request #399 from orangemug/fix/added-default-prop

Added default isActive prop to Collapse component
This commit is contained in:
Orange Mug 2018-09-24 20:44:04 +01:00 committed by GitHub
commit aa50785c12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,10 @@ export default class CollapseAlt extends React.Component {
children: PropTypes.element.isRequired
}
static defaultProps = {
isActive: true
}
render() {
if (accessibility.reducedMotionEnabled()) {
return (