Skip to content

Commit

Permalink
[TextFields] Update character count announcement in MDCTextInputContr…
Browse files Browse the repository at this point in the history
…ollerFullWidth (#8789)
  • Loading branch information
bryanoltman committed Nov 12, 2019
1 parent 5425884 commit 118dfa3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/TextFields/src/MDCTextInputControllerFullWidth.m
Expand Up @@ -1067,11 +1067,11 @@ - (void)textInputDidChange:(__unused NSNotification *)note {
if (self.textInput.isEditing && self.characterCountMax > 0) {
NSString *announcementString;
if (!announcementString.length) {
announcementString = [NSString
stringWithFormat:@"%lu characters remaining",
(unsigned long)(self.characterCountMax -
[self.characterCounter
characterCountForTextInput:self.textInput])];
announcementString =
[NSString stringWithFormat:@"%lu of %lu characters",
(unsigned long)[self.characterCounter
characterCountForTextInput:self.textInput],
(unsigned long)self.characterCountMax];
}

// Simply sending a layout change notification does not seem to
Expand Down

0 comments on commit 118dfa3

Please sign in to comment.