Skip to content

Commit 9a861d6

Browse files
diptopolDiptopol Dam
authored andcommitted
Fixed error message for text count is in maximum limit
1 parent 4a47c26 commit 9a861d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

textcounter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
if (textCount === base.options.max && base.options.max !== 0) {
9595
// TextCounter: maxcount(el) Callback
9696
base.options.maxcount(base.el);
97+
base.clearErrors('max');
9798

9899
} else if (textCount > base.options.max && base.options.max !== 0) {
99100
if (base.options.stopInputAtMaximum) { // if the string should be trimmed at the maximum length

0 commit comments

Comments
 (0)