Browse Source

Pull request #1938: 无JIRA任务 测试下fineui同步dec-fineui

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit 'f86b7cd9ac3308eafb71637709c74d944c733fc6':
  无JIRA任务 测试下fineui同步dec-fineui
es6
windy 3 years ago
parent
commit
0ae0020c45
  1. 5
      src/widget/multiselect/trigger/editor/editor.patch.js

5
src/widget/multiselect/trigger/editor/editor.patch.js

@ -67,13 +67,16 @@ BI.SelectPatchEditor = BI.inherit(BI.Widget, {
_dealChange: function (type, v) {
var value = "";
if (v !== this.editor.getValue()) {
return;
}
if (BI.isKey(v)) {
value = this._formatText(v);
}
if (type === BI.Events.CHANGE) {
this._setValue(value);
if (this._trimValue(value) !== "") {
if (!this._start || !BI.isKey(this._lastValue) || (this._pause === true && !/\u200b\s\u200b$/.test(this.getValue()))) {
if (!this._start || !BI.isKey(this._lastValue) || (this._pause === true && this._trimValue(this._lastValue) !== this._trimValue(value))) {
this._start = true;
this._pause = false;
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STARTEDIT, this.getValue(), this);

Loading…
Cancel
Save