mirror of
https://github.com/maputnik/editor.git
synced 2026-01-03 12:00:00 +00:00
Allow setting many comma separated values
This commit is contained in:
@@ -49,7 +49,7 @@ class ZoomSpecField extends React.Component {
|
||||
return <div style={{
|
||||
border: 1,
|
||||
borderStyle: 'solid',
|
||||
borderColor: color(theme.colors.gray).lighten(0.1).hexString(),
|
||||
borderColor: color(theme.colors.gray).lighten(0.1).string(),
|
||||
padding: theme.scale[1],
|
||||
}}>
|
||||
{zoomFields}
|
||||
|
||||
@@ -7,6 +7,7 @@ import inputStyle from '../fields/input.js'
|
||||
import theme from '../theme.js'
|
||||
|
||||
const combiningFilterOps = ['all', 'any', 'none']
|
||||
const setFilterOps = ['in', '!in']
|
||||
const otherFilterOps = Object
|
||||
.keys(GlSpec.filter_operator.values)
|
||||
.filter(op => combiningFilterOps.indexOf(op) < 0)
|
||||
@@ -106,8 +107,9 @@ class SingleFilterEditor extends React.Component {
|
||||
width: '53%',
|
||||
margin: theme.scale[0]
|
||||
}}
|
||||
value={filterArgs}
|
||||
onChange={newFilterArgs => this.onFilterPartChanged(filterOp, propertyName, newFilterArgs)}
|
||||
value={filterArgs.join(',')}
|
||||
onChange={e => {
|
||||
this.onFilterPartChanged(filterOp, propertyName, e.target.value.split(','))}}
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user