Fix maxLength object handling. Fixes #759

This commit is contained in:
Francisco Hodge 2020-10-22 23:21:23 -04:00
parent 4129366bc0
commit 8f0291179c

View File

@ -362,7 +362,7 @@ class Utilities {
}
if (typeof maxLength === "object") {
const condition = currentInput.length === maxLength[options.inputName];
const condition = updatedInput.length - 1 >= maxLength[options.inputName];
if (options.debug) {
console.log("maxLength (obj) reached:", condition);