Merge pull request #5617 from engrbm87:forward-name-to-input

PiperOrigin-RevId: 634513285
This commit is contained in:
Copybara-Service 2024-05-16 13:37:43 -07:00
commit 0502b47546

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}