mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-04-12 20:03:08 +08:00
Fix maxLength object handling. Fixes #759
This commit is contained in:
parent
4129366bc0
commit
8f0291179c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user