diff --git a/www/form/inner.js b/www/form/inner.js index d5d62b8f0..f3c880afc 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -968,7 +968,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);