shx-3d-render

main
Jan Umbach 2024-06-23 10:27:59 +02:00
parent b1f6ab1703
commit ef114353a8
1 changed files with 2 additions and 3 deletions

View File

@ -306,9 +306,6 @@
<label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}</label>
<div class="field custom">
<input class="field__input" form="product-form-${section_id}" type="text" id="${inputID}" name="properties[${inputName}]" value="${inputVal}" oninput="document.querySelector('shx-input-forms').renderView()" required maxlength="20">
<script>
document.addEventListener("DOMContentLoaded", ()=>{document.querySelector("form[novalidate]").removeAttribute("novalidate")})
</script>
</div>
`;
}
@ -419,6 +416,8 @@
}
};
document.addEventListener("DOMContentLoaded", ()=>{document.querySelector("form[novalidate]").removeAttribute("novalidate")});
// create new html tag called "shx-input-forms"
class InputFormsElement extends HTMLElement {
constructor() {