|
|
|
@ -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);
|
|
|
|
|