shx-3d-render
parent
eb8e2c0430
commit
ca1a22897e
|
@ -454,6 +454,7 @@
|
||||||
|
|
||||||
return html;
|
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>`;
|
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;
|
event.target.checked = false;
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.Viewer3DContainer.appendChild(this.requiredPlaceholder);
|
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);
|
setTimeout(createIFrame.bind(this), 1000);
|
||||||
|
|
Loading…
Reference in New Issue