You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the original code does not check the field length against the maxlength attribute that might be associated to the input field.
In order to do that, the javascript inputFocusListener function must be modified to include a new variable:
var theInputMaxLenAttr = theInput.getAttribute('maxlength');
and to use this value later on in the keysClickListeners function:
// add value by index
if ((theInputMaxLenAttr === null) || (theInputValArray.length < theInputMaxLenAttr)) {
theInputValArray.splice(theInputSelIndex, 0, keyValue);
}
The text was updated successfully, but these errors were encountered:
omogenot
changed the title
Virtual keyboard does not take input malden attribute into account
Virtual keyboard does not take input maxlen attribute into account
Mar 23, 2021
Fixed: The dispatcher issue on the input change event has been fixed: ([#11](#11))
Fixed: The current text selection issue has been fixed: ([#19](#19))
Added: The `max` and `maxlength` attribute controls have been added: ([#17](#17))
Added: The `options` parameter has been added to the `Run()` function to set the initialize options. => `KioskBoard.Run(selector, options);`
Changed: The `selector` parameter has been changed to `selectorOrElement` that also can use an element instead of the query selector. => `KioskBoard.Run(selectorOrElement);`
Changed: The `Merge()` function has been deprecated.
Changed: Code Review.
Hi,
I noticed that the original code does not check the field length against the maxlength attribute that might be associated to the input field.
In order to do that, the javascript
inputFocusListener
function must be modified to include a new variable:and to use this value later on in the
keysClickListeners
function:The text was updated successfully, but these errors were encountered: