Skip to content

Commit

Permalink
fix(material-experimental/mdc-chips): replace innerText w/ textContent (
Browse files Browse the repository at this point in the history
#24635)

The chip edit input was using innerText to set the text of an element. This change was prompted by a Google-internal check that warns about `innerText`, but we generally want to use `textContent` anyway as it is more standard.

(cherry picked from commit 12b5387)
  • Loading branch information
jelbourn authored and wagnermaciel committed Mar 22, 2022
1 parent e04b7ae commit b09c742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material-experimental/mdc-chips/chip-edit-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class MatChipEditInput {
}

setValue(value: string) {
this.getNativeElement().innerText = value;
this.getNativeElement().textContent = value;
this._moveCursorToEndOfInput();
}

Expand Down

0 comments on commit b09c742

Please sign in to comment.