From 837870f9ef2399bd6c30ac2ad20c4c36de7e5c89 Mon Sep 17 00:00:00 2001 From: williamernest Date: Wed, 1 May 2019 08:29:06 -0600 Subject: [PATCH] fix(text-field): Update character counter to update when value is set. --- packages/mdc-textfield/foundation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mdc-textfield/foundation.ts b/packages/mdc-textfield/foundation.ts index 70635afff4b..4bf157249b5 100644 --- a/packages/mdc-textfield/foundation.ts +++ b/packages/mdc-textfield/foundation.ts @@ -289,8 +289,8 @@ export class MDCTextFieldFoundation extends MDCFoundation { // Prevent Safari from moving the caret to the end of the input when the value has not changed. if (this.getValue() !== value) { this.getNativeInput_().value = value; - this.setCharacterCounter_(value.length); } + this.setCharacterCounter_(value.length); const isValid = this.isValid(); this.styleValidity_(isValid); if (this.adapter_.hasLabel()) {