ix race condition bug on highlight

This commit is contained in:
EpicKiwi 2026-06-13 14:10:39 +02:00
parent f06c445264
commit 15e5a409c1
Signed by: epickiwi
GPG key ID: C4B28FD2729941CE

View file

@ -124,6 +124,7 @@ function updateActiveFeature(feature_or_featureid){
}
document.getElementById("result-panel").addEventListener("activePanelChange", e => {
if(e.activePanelIndex){
let activeElement = e.target.children[e.activePanelIndex]
if(activeElement instanceof FeatureElement){
let feature = activeElement.feature
@ -131,4 +132,5 @@ document.getElementById("result-panel").addEventListener("activePanelChange", e
} else {
MAP.unhighlight_all()
}
}
})