Don't use label span in menu item template
This commit is contained in:
		
							parent
							
								
									af9516dde0
								
							
						
					
					
						commit
						0e979ca5c5
					
				| @ -79,7 +79,6 @@ | ||||
|                     data-action="marker#go" | ||||
|                     data-marker-coords-value="" | ||||
|                     data-marker-group-value=""> | ||||
|                     <span class="label"></span> | ||||
|                     </a> | ||||
|                 </li> | ||||
|             </template> | ||||
|  | ||||
| @ -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); | ||||
|             } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user