Skip to content

Commit b464100

Browse files
authored
Merge pull request #712 from Progi1984/issue37303
Add an attribute minlength if provided
2 parents e447626 + c7b3d68 commit b464100

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/_partials/form-fields.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@
187187
{if $field.autocomplete}autocomplete="{$field.autocomplete}"{/if}
188188
{if isset($field.availableValues.placeholder)}placeholder="{$field.availableValues.placeholder}"{/if}
189189
{if $field.maxLength}maxlength="{$field.maxLength}"{/if}
190+
{if !empty($field.minLength)}minlength="{$field.minLength}"{/if}
190191
aria-label="{$field.name}"
191192
{if $field.required}required{/if}
192193
>

0 commit comments

Comments
 (0)