shx-3d-render

main
Jan Umbach 2024-06-24 21:03:24 +02:00
parent eb8e2c0430
commit ca1a22897e
1 changed files with 15 additions and 2 deletions

View File

@ -454,6 +454,7 @@
return html;
}
const defaultStyle = `<style>.custom.form__label{margin-bottom: 0.6rem}.field.custom{margin-top: 0.6rem}.custom .field__input{padding-top:0.8rem}</style>`;
@ -664,11 +665,23 @@
event.target.checked = false;
return false;
});
this.Viewer3DContainer.appendChild(this.requiredPlaceholder);
this.invisibleProductID = document.createElement('input');
this.invisibleProductID.type = 'input';
this.invisibleProductID.classList.add('invisibleInput');
this.invisibleProductID.setAttribute('form', 'product-form-' + this.section_id);
this.invisibleProductID.name = 'properties[Checkbox]';
this.invisibleProductID.required = false;
this.invisibleProductID.value = this.currentVariant;
this.invisibleProductID.addEventListener('input', (event) => {
event.target.checked = false;
return false;
});
this.Viewer3DContainer.appendChild(this.invisibleProductID);
}
setTimeout(createIFrame.bind(this), 1000);