Closed
Description
I discovered when working with the restrictLength functionality in a text area that I could get the character counter to display a -1 as the count. The function does its job of chopping off the extra characters but it doesn't adjust the count properly and appeared to be a bit buggy. You can test this out by just typing a bunch of characters past the limit and see it go from 0 to -1.
One change I did locally was in the lengthRestriction function, I do not do the numChars count before the trimming of the text to the maxLength. When moved, this allowed for a proper count to make sure only 0 was showed and not any negative values.