From f86b7cd9ac3308eafb71637709c74d944c733fc6 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 31 May 2021 11:14:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=B8=8Bfineui=E5=90=8C=E6=AD=A5dec-fineui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/multiselect/trigger/editor/editor.patch.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/widget/multiselect/trigger/editor/editor.patch.js b/src/widget/multiselect/trigger/editor/editor.patch.js index 14e95a2a0..dff1fe7b1 100644 --- a/src/widget/multiselect/trigger/editor/editor.patch.js +++ b/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);