changed max length

main
Jan Umbach 2024-07-14 18:16:52 +02:00
parent 824a8419d2
commit 9d4f7303ec
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}" 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>
`; `;