mirror of
https://github.com/maputnik/editor.git
synced 2025-12-24 07:00:01 +00:00
Introduce AutocompelteInput for source editing
This commit is contained in:
@@ -3,6 +3,7 @@ import React from 'react'
|
||||
import InputBlock from '../inputs/InputBlock'
|
||||
import StringInput from '../inputs/StringInput'
|
||||
import SelectInput from '../inputs/SelectInput'
|
||||
import AutocompleteInput from '../inputs/AutocompleteInput'
|
||||
|
||||
class LayerSourceLayer extends React.Component {
|
||||
static propTypes = {
|
||||
@@ -13,7 +14,7 @@ class LayerSourceLayer extends React.Component {
|
||||
|
||||
render() {
|
||||
return <InputBlock label={"Source Layer"}>
|
||||
<SelectInput
|
||||
<AutocompleteInput
|
||||
value={this.props.value}
|
||||
onChange={this.props.onChange}
|
||||
options={this.props.sourceLayerIds.map(l => [l, l])}
|
||||
|
||||
Reference in New Issue
Block a user