changed max length
parent
16d434edc4
commit
71f3c486f0
|
@ -426,7 +426,7 @@
|
|||
return `
|
||||
<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.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>
|
||||
`;
|
||||
|
|
Loading…
Reference in New Issue