mirror of
https://github.com/maputnik/editor.git
synced 2025-12-27 00:20:00 +00:00
Only collapse when clicking on header
This commit is contained in:
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user