[BUGFIX] Safari querySelector foreach

This commit is contained in:
Xaver Maierhofer 2017-11-02 22:38:22 +01:00
parent 4315f18efe
commit 9a4836257f
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8
1 changed files with 2 additions and 1 deletions

View File

@ -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());
});