I'm getting an error in a form using maxlength on several textareafields. If the maxlengthindicator isn't shown I'm getting an error:
TypeError: maxLengthIndicator is undefined
I've already found the error. Instead of:
currentInput.on('maxlength.reposition', function () {
place(currentInput, maxLengthIndicator);
});
My proposed fixed is:
currentInput.on('maxlength.reposition', function () {
if (maxLengthIndicator) {
place(currentInput, maxLengthIndicator);
}
});
I'm getting an error in a form using maxlength on several textareafields. If the maxlengthindicator isn't shown I'm getting an error:
TypeError: maxLengthIndicator is undefined
I've already found the error. Instead of:
My proposed fixed is: