Don't use label span in menu item template
This commit is contained in:
@@ -35,11 +35,10 @@ export default class extends Controller {
|
||||
if (marker.options.municipality === municipality) {
|
||||
const clone = template.content.cloneNode(true);
|
||||
const link = clone.querySelector('a');
|
||||
const labelSpan = clone.querySelector('.label');
|
||||
|
||||
link.dataset.markerCoordsValue = key;
|
||||
link.dataset.markerGroupValue = group;
|
||||
labelSpan.textContent = marker.options.label;
|
||||
link.textContent = marker.options.label;
|
||||
|
||||
ul.appendChild(clone);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user