[BUGFIX] Safari querySelector foreach
This commit is contained in:
parent
4315f18efe
commit
9a4836257f
@ -106,7 +106,8 @@ define(['map/clientlayer', 'map/labellayer', 'map/button', 'leaflet'],
|
||||
});
|
||||
|
||||
map.on('load', function () {
|
||||
document.querySelectorAll('.leaflet-control-layers-selector').forEach(function (input) {
|
||||
var inputs = document.querySelectorAll('.leaflet-control-layers-selector');
|
||||
[].forEach.call(inputs, function (input) {
|
||||
input.setAttribute('role', 'radiogroup');
|
||||
input.setAttribute('aria-label', input.nextSibling.innerHTML.trim());
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user