Skip to content

Commit 8806fc3

Browse files
committed
fix: make sure layercontrol does not disappear on editor update
1 parent 4f8db0a commit 8806fc3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/eodash-style-editor.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ export class EodashStyleEditor extends LitElement {
348348
return layer
349349
});
350350
this._mapLayers = [...newLayers] // Trigger Lit update with new array reference
351-
352351
}
353352

354353
async onEditorInput(e) {
@@ -373,7 +372,6 @@ export class EodashStyleEditor extends LitElement {
373372

374373
// 4. Rebuild map layers and set editor string if parsing succeeded.
375374
if (parseResult !== false) {
376-
this._isLayerControlVisible = false
377375
// It is important to to only set the editor value only if the parsing was successful,
378376
// otherwise desynchronization sneaks in and messes with our formatting. Do not move.
379377
this._style = parseResult

0 commit comments

Comments
 (0)