From 29d70552dd1f68eef4ba9929c0db17dd785a73e9 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 24 Jan 2025 18:19:57 +0100 Subject: [PATCH] fix: always index properties when feature properties as changed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want the datalayer index properties to be updated when a user set a property on the feature, as this property name may not yet be in the index (which is used later for autocomplete, select…). --- umap/static/umap/js/modules/data/features.js | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/static/umap/js/modules/data/features.js b/umap/static/umap/js/modules/data/features.js index 18ce98f9..04bd0132 100644 --- a/umap/static/umap/js/modules/data/features.js +++ b/umap/static/umap/js/modules/data/features.js @@ -213,6 +213,7 @@ class Feature { if (this._umap.currentFeature === this) { this.view() } + this.datalayer.indexProperties(this) } this.redraw() }