mirror of
https://github.com/maputnik/editor.git
synced 2026-08-24 14:07:33 +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() {
|
render() {
|
||||||
return <div
|
return <div>
|
||||||
onClick={e => this.props.onActiveToggle(!this.props.isActive)}
|
|
||||||
>
|
|
||||||
<div style={{
|
<div style={{
|
||||||
fontSize: fontSizes[4],
|
fontSize: fontSizes[4],
|
||||||
backgroundColor: colors.gray,
|
backgroundColor: colors.gray,
|
||||||
@@ -39,7 +37,9 @@ export default class LayerEditorGroup extends React.Component {
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
lineHeight: '20px',
|
lineHeight: '20px',
|
||||||
}}>
|
}}
|
||||||
|
onClick={e => this.props.onActiveToggle(!this.props.isActive)}
|
||||||
|
>
|
||||||
<span>{this.props.title}</span>
|
<span>{this.props.title}</span>
|
||||||
<span style={{flexGrow: 1}} />
|
<span style={{flexGrow: 1}} />
|
||||||
<Collapser isCollapsed={this.props.isActive} />
|
<Collapser isCollapsed={this.props.isActive} />
|
||||||
|
|||||||
Reference in New Issue
Block a user