mirror of
https://github.com/maputnik/editor.git
synced 2026-06-22 15:17:29 +00:00
Stop LayerEditor using same DOM elements for different layers.
This commit is contained in:
@@ -645,6 +645,7 @@ export default class App extends React.Component {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
const layerEditor = selectedLayer ? <LayerEditor
|
const layerEditor = selectedLayer ? <LayerEditor
|
||||||
|
key={selectedLayer.id}
|
||||||
layer={selectedLayer}
|
layer={selectedLayer}
|
||||||
layerIndex={this.state.selectedLayerIndex}
|
layerIndex={this.state.selectedLayerIndex}
|
||||||
isFirstLayer={this.state.selectedLayerIndex < 1}
|
isFirstLayer={this.state.selectedLayerIndex < 1}
|
||||||
|
|||||||
Reference in New Issue
Block a user