From ec665f0021b84d7095c8869d611ea6ea05127f1a Mon Sep 17 00:00:00 2001 From: Jeremy Elbourn Date: Mon, 21 Mar 2022 11:14:32 -0700 Subject: [PATCH] fix(material-experimental/mdc-chips): replace innerText w/ textContent 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. --- src/material-experimental/mdc-chips/chip-edit-input.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material-experimental/mdc-chips/chip-edit-input.ts b/src/material-experimental/mdc-chips/chip-edit-input.ts index 9f6ffc6e8437..f9f9657284ed 100644 --- a/src/material-experimental/mdc-chips/chip-edit-input.ts +++ b/src/material-experimental/mdc-chips/chip-edit-input.ts @@ -38,7 +38,7 @@ export class MatChipEditInput { } setValue(value: string) { - this.getNativeElement().innerText = value; + this.getNativeElement().textContent = value; this._moveCursorToEndOfInput(); }