changed max length

main
Jan Umbach 2024-07-14 18:34:51 +02:00
parent 16d434edc4
commit 71f3c486f0
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@
return ` return `
<label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}</label> <label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}</label>
<div class="field custom"> <div class="field custom">
<input class="field__input" form="product-form-${section_id}" type="text" id="${inputID}" name="properties[${inputName}]" value="${inputVal.length > maxlength ? inputVal.substring(0, maxlength) :inputVal}" oninput="document.querySelector('shx-input-forms').renderView()" required maxlength="${maxLength}" normalMaxLength="${maxLength}"> <input class="field__input" form="product-form-${section_id}" type="text" id="${inputID}" name="properties[${inputName}]" value="${(inputVal.length > maxlength ? inputVal.substring(0, maxlength) : inputVal)}" oninput="document.querySelector('shx-input-forms').renderView()" required maxlength="${maxLength}" normalMaxLength="${maxLength}">
</div> </div>
`; `;