Skip to content

Commit 6f94aa1

Browse files
Codebaccatinayuangao
authored andcommitted
fix character count hint for input. (#2235)
fix (input): Remove the property CharacterCounter on md-input. Add name of local variable on md-input and add md-hint to fix counter binding of md-input for the show hint lable with charater count example. The property characterCounter does not exist on md-input and therefore the character count was not being displayed for the show hint lable with charater count example. Removing this and adding the name #characterCountHintExampleInput along with the md-hint tag using the name and the character count property fixes the issue.
1 parent 4a6b6a6 commit 6f94aa1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/demo-app/input/input-demo.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ <h4>Textarea</h4>
111111
</p>
112112
<p>
113113
<md-input placeholder="Show Hint Label With Character Count" style="width: 100%"
114-
hintLabel="Hint label" characterCounter></md-input>
114+
hintLabel="Hint label" #characterCountHintExampleInput>
115+
<md-hint align="end">{{characterCountHintExampleInput.characterCount}}</md-hint>
116+
</md-input>
115117
</p>
116118
<p>
117119
<md-checkbox [(ngModel)]="dividerColor">Check to change the divider color:</md-checkbox>

0 commit comments

Comments
 (0)