mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 01:47:39 +00:00
feat(web): properly set for attribute for labels (#1626)
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@
|
|||||||
}
|
}
|
||||||
list.appendChild(htmlElement);
|
list.appendChild(htmlElement);
|
||||||
const htmlLabelElement = document.createElement('label');
|
const htmlLabelElement = document.createElement('label');
|
||||||
htmlLabelElement.for = name;
|
htmlLabelElement.setAttribute('for', name);
|
||||||
htmlLabelElement.innerText = element;
|
htmlLabelElement.innerText = element;
|
||||||
list.appendChild(htmlLabelElement);
|
list.appendChild(htmlLabelElement);
|
||||||
list.appendChild(document.createElement('br'));
|
list.appendChild(document.createElement('br'));
|
||||||
|
|||||||
Reference in New Issue
Block a user