Skip to content

Commit

Permalink
fix(textfield): forward the multiple field to the native input
Browse files Browse the repository at this point in the history
fixes #5064

PiperOrigin-RevId: 574295848
  • Loading branch information
e111077 authored and Copybara-Service committed Oct 17, 2023
1 parent 18fe451 commit 03e5a7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions textfield/internal/text-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@ export abstract class TextField extends LitElement {
*/
@property({type: Boolean, reflect: true}) readOnly = false;

/**
* Indicates that input accepts multiple email addresses.
*
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email#multiple
*/
@property({type: Boolean, reflect: true}) multiple = false;

/**
* Gets or sets the direction in which selection occurred.
*/
Expand Down Expand Up @@ -658,6 +665,7 @@ export abstract class TextField extends LitElement {
placeholder=${this.placeholder || nothing}
?readonly=${this.readOnly}
?required=${this.required}
?multiple=${this.multiple}
step=${(this.step || nothing) as unknown as number}
type=${this.type}
.value=${live(this.value)}
Expand Down

0 comments on commit 03e5a7e

Please sign in to comment.