mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-31 00:30:33 +01:00
Merge pull request #151 from bartvde/key-warning
Put key on the right element
This commit is contained in:
commit
4ef19c321d
1 changed files with 1 additions and 2 deletions
|
@ -49,18 +49,17 @@ class DynamicArrayInput extends React.Component {
|
||||||
const deleteValueBtn= <DeleteValueButton onClick={this.deleteValue.bind(this, i)} />
|
const deleteValueBtn= <DeleteValueButton onClick={this.deleteValue.bind(this, i)} />
|
||||||
const input = this.props.type === 'number'
|
const input = this.props.type === 'number'
|
||||||
? <NumberInput
|
? <NumberInput
|
||||||
key={i}
|
|
||||||
value={v}
|
value={v}
|
||||||
onChange={this.changeValue.bind(this, i)}
|
onChange={this.changeValue.bind(this, i)}
|
||||||
/>
|
/>
|
||||||
: <StringInput
|
: <StringInput
|
||||||
key={i}
|
|
||||||
value={v}
|
value={v}
|
||||||
onChange={this.changeValue.bind(this, i)}
|
onChange={this.changeValue.bind(this, i)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
return <div
|
return <div
|
||||||
style={this.props.style}
|
style={this.props.style}
|
||||||
|
key={i}
|
||||||
className="maputnik-array-block"
|
className="maputnik-array-block"
|
||||||
>
|
>
|
||||||
<div className="maputnik-array-block-action">
|
<div className="maputnik-array-block-action">
|
||||||
|
|
Loading…
Reference in a new issue