From bc1d0de0572017cb72387abf2ed9f5d3d8296099 Mon Sep 17 00:00:00 2001 From: orangemug Date: Mon, 24 Sep 2018 16:55:31 +0100 Subject: [PATCH] Added default isActive prop to Collapse component --- src/components/layers/Collapse.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/layers/Collapse.jsx b/src/components/layers/Collapse.jsx index aeaa09b..cea8523 100644 --- a/src/components/layers/Collapse.jsx +++ b/src/components/layers/Collapse.jsx @@ -10,6 +10,10 @@ export default class CollapseAlt extends React.Component { children: PropTypes.element.isRequired } + static defaultProps = { + isActive: true + } + render() { if (accessibility.reducedMotionEnabled()) { return (