mirror of
https://github.com/material-components/material-web.git
synced 2024-10-05 17:48:16 +03:00
Merge pull request #5617 from engrbm87:forward-name-to-input
PiperOrigin-RevId: 634513285
This commit is contained in:
commit
0502b47546
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user