Skip to content

Commit 4ed2139

Browse files
committed
Fix: JS querySelectorAll on input.lizmap-popup-layer-feature-id with layerId value
The layerId value was not under `"` in the `querySelectorAll` for `input.lizmap-popup-layer-feature-id`. This generated this error : ``` Uncaught DOMException: Document.querySelectorAll: 'input.lizmap-popup-layer-feature-id[value^=20250702_IRVE_a2582227_d4b1_4afd_a71a_070817a670ed]' is not a valid selector layerFilterParamChanged map.js:1581 triggerEvent OpenLayers.js:497 I attributeTable.js:2548 S attributeTable.js:2356 R attributeTable.js:2957 layerFilteredFeaturesChanged attributeTable.js:3440 triggerEvent OpenLayers.js:497 layerfeatureremovefilter attributeTable.js:2295 triggerEvent OpenLayers.js:497 lizmaplocatefeaturecanceled attributeTable.js:3517 triggerEvent OpenLayers.js:497 addLocateByLayer lizmap.js:1257 ``` Funded by [Terre de Provence Agglomération](https://www.terredeprovence-agglo.com/)
1 parent 1fdf04a commit 4ed2139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/src/legacy/map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ window.lizMap = function() {
15781578

15791579
// Do not get the filter token if the popup is not displayed
15801580
nbPopupDisplayed = document.querySelectorAll(
1581-
`input.lizmap-popup-layer-feature-id[value^=${lConfig.id}]`
1581+
`input.lizmap-popup-layer-feature-id[value^="${lConfig.id}"]`
15821582
).length;
15831583
if (nbPopupDisplayed == 0) {
15841584
continue;

0 commit comments

Comments
 (0)