Forward name attribute to input and textarea elements in TextField

This commit is contained in:
Rami Mosleh 2024-05-16 12:37:07 +00:00
parent 7f3d9d1bdf
commit ba5201bef9

View File

@ -604,6 +604,7 @@ export abstract class TextField extends textFieldBaseClass {
aria-invalid=${this.hasError}
aria-label=${ariaLabel}
autocomplete=${autocomplete || nothing}
name=${this.name || nothing}
?disabled=${this.disabled}
maxlength=${hasMaxLength ? this.maxLength : nothing}
minlength=${hasMinLength ? this.minLength : nothing}
@ -638,6 +639,7 @@ export abstract class TextField extends textFieldBaseClass {
aria-invalid=${this.hasError}
aria-label=${ariaLabel}
autocomplete=${autocomplete || nothing}
name=${this.name || nothing}
?disabled=${this.disabled}
inputmode=${inputMode || nothing}
max=${(this.max || nothing) as unknown as number}