mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 10:15:24 +01:00
Added default isActive prop to Collapse component
This commit is contained in:
parent
c908f7dcd0
commit
bc1d0de057
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@ export default class CollapseAlt extends React.Component {
|
|||
children: PropTypes.element.isRequired
|
||||
}
|
||||
|
||||
static defaultProps = {
|
||||
isActive: true
|
||||
}
|
||||
|
||||
render() {
|
||||
if (accessibility.reducedMotionEnabled()) {
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue