mirror of
https://github.com/maputnik/editor.git
synced 2025-12-20 05:00:00 +00:00
Fix to keep autocomplete menu within window bounds.
This commit is contained in:
@@ -22,6 +22,7 @@ class LayerSourceLayer extends React.Component {
|
||||
render() {
|
||||
return <InputBlock label={"Source Layer"} doc={styleSpec.latest.layer['source-layer'].doc}>
|
||||
<AutocompleteInput
|
||||
keepMenuWithinWindowBounds={true}
|
||||
value={this.props.value}
|
||||
onChange={this.props.onChange}
|
||||
options={this.props.sourceLayerIds.map(l => [l, l])}
|
||||
|
||||
Reference in New Issue
Block a user