mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2026-04-30 00:00:04 +08:00
Fix maxLength object handling. Fixes #759
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user