Fix character count when restoring form data

pull/1/head
yflory 4 years ago
parent b022fe573a
commit 360204df30

@ -968,7 +968,10 @@ define([
return { return {
tag: tag, tag: tag,
getValue: function () { return $text.val().slice(0, opts.maxLength); }, 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) { edit: function (cb, tmp) {
var v = Util.clone(opts); var v = Util.clone(opts);
return editTextOptions(v, setCursorGetter, cb, tmp); return editTextOptions(v, setCursorGetter, cb, tmp);

Loading…
Cancel
Save