feat(web): properly set for attribute for labels (#1626)

This commit is contained in:
Jordan Tucker
2021-01-08 09:23:16 -06:00
committed by GitHub
parent 426a8ce015
commit c0638d2e4b
+1 -1
View File
@@ -29,7 +29,7 @@
}
list.appendChild(htmlElement);
const htmlLabelElement = document.createElement('label');
htmlLabelElement.for = name;
htmlLabelElement.setAttribute('for', name);
htmlLabelElement.innerText = element;
list.appendChild(htmlLabelElement);
list.appendChild(document.createElement('br'));