Merge remote-tracking branch 'origin/form' into form

This commit is contained in:
David Benqué 2021-06-08 15:47:57 +01:00
commit 733c788c34

View file

@ -961,7 +961,7 @@ define([
evOnChange.fire();
}, 500);
$text.on('change keypress', function () {
$text.on('change keypress keyup keydown', function () {
setTimeout(updateChar);
evChange();
});
@ -970,7 +970,10 @@ define([
return {
tag: tag,
getValue: function () { return $text.val().slice(0, opts.maxLength); },
setValue: function (val) { $text.val(val); },
setValue: function (val) {
$text.val(val);
updateChar();
},
edit: function (cb, tmp) {
var v = Util.clone(opts);
return editTextOptions(v, setCursorGetter, cb, tmp);