mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-27 03:18:41 +01:00
Only collapse when clicking on header
This commit is contained in:
parent
18674f5edb
commit
c776d19aed
1 changed files with 4 additions and 4 deletions
|
@ -28,9 +28,7 @@ export default class LayerEditorGroup extends React.Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
return <div
|
||||
onClick={e => this.props.onActiveToggle(!this.props.isActive)}
|
||||
>
|
||||
return <div>
|
||||
<div style={{
|
||||
fontSize: fontSizes[4],
|
||||
backgroundColor: colors.gray,
|
||||
|
@ -39,7 +37,9 @@ export default class LayerEditorGroup extends React.Component {
|
|||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
lineHeight: '20px',
|
||||
}}>
|
||||
}}
|
||||
onClick={e => this.props.onActiveToggle(!this.props.isActive)}
|
||||
>
|
||||
<span>{this.props.title}</span>
|
||||
<span style={{flexGrow: 1}} />
|
||||
<Collapser isCollapsed={this.props.isActive} />
|
||||
|
|
Loading…
Reference in a new issue