shx-3d-render

main
Jan Umbach 2024-06-21 20:18:59 +02:00
parent 597705687c
commit 1db9ee0b74
1 changed files with 2 additions and 2 deletions

View File

@ -170,9 +170,9 @@
<div id="${inputID}" class="shx-ifc-colorselect">
`;
for(let i = 0; i < options.length; i++) {
for(let color in options) {
html += `
<input type="radio" id="${inputID}-${i}" form="product-form-${section_id}" name="properties[${inputName}]" value="HEX_${options[i]}" ${inputVal === options[i] ? 'checked' : ''}>
<input type="radio" id="${inputID}-${i}" form="product-form-${section_id}" name="properties[${inputName}]" value="${options[color].name}" ${inputVal === color ? 'checked' : ''}>
<label for="${inputID}-${i}" style="background-color: ${options[i]};"></label>
`;