Skip to content

Commit 0502b47

Browse files
Merge pull request #5617 from engrbm87:forward-name-to-input
PiperOrigin-RevId: 634513285
2 parents d802f89 + ba5201b commit 0502b47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

textfield/internal/text-field.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ export abstract class TextField extends textFieldBaseClass {
604604
aria-invalid=${this.hasError}
605605
aria-label=${ariaLabel}
606606
autocomplete=${autocomplete || nothing}
607+
name=${this.name || nothing}
607608
?disabled=${this.disabled}
608609
maxlength=${hasMaxLength ? this.maxLength : nothing}
609610
minlength=${hasMinLength ? this.minLength : nothing}
@@ -638,6 +639,7 @@ export abstract class TextField extends textFieldBaseClass {
638639
aria-invalid=${this.hasError}
639640
aria-label=${ariaLabel}
640641
autocomplete=${autocomplete || nothing}
642+
name=${this.name || nothing}
641643
?disabled=${this.disabled}
642644
inputmode=${inputMode || nothing}
643645
max=${(this.max || nothing) as unknown as number}

0 commit comments

Comments
 (0)