Skip to content

Commit

Permalink
Merge pull request #5617 from engrbm87:forward-name-to-input
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 634513285
  • Loading branch information
copybara-github committed May 16, 2024
2 parents d802f89 + ba5201b commit 0502b47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions textfield/internal/text-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 0502b47

Please sign in to comment.