From 6e2e112dd0e55ae510503a6578cd47c02feb3918 Mon Sep 17 00:00:00 2001 From: Freddy Date: Tue, 8 Mar 2022 10:28:13 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-60473=20fix:=E5=AE=9E=E7=8E=B0=E4=B8=80?= =?UTF-8?q?=E4=B8=8BsetWaterMark?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/editor/editor.state.js | 2 -- src/case/editor/editor.state.simple.js | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/case/editor/editor.state.js b/src/case/editor/editor.state.js index 7b388da4a..d1e11b20a 100644 --- a/src/case/editor/editor.state.js +++ b/src/case/editor/editor.state.js @@ -156,8 +156,6 @@ BI.StateEditor = BI.inherit(BI.Widget, { setWaterMark: function (v) { this.options.watermark = v; - this.options.defaultText = v; - this.setState(BI.isNull(this.stateValue) || this.stateValue === "" ? v : this.stateValue); this.editor.setWaterMark(v); }, diff --git a/src/case/editor/editor.state.simple.js b/src/case/editor/editor.state.simple.js index e2c010990..81b815441 100644 --- a/src/case/editor/editor.state.simple.js +++ b/src/case/editor/editor.state.simple.js @@ -143,8 +143,6 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, { setWaterMark: function (v) { this.options.watermark = v; - this.options.text = v; - this.setState(this.stateValue); this.editor.setWaterMark(v); }, @@ -234,7 +232,6 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, { setState: function (v) { var o = this.options; BI.SimpleStateEditor.superclass.setValue.apply(this, arguments); - this.stateValue = v; if (BI.isNumber(v)) { if (v === BI.Selection.All) { this._setText(BI.i18nText("BI-Already_Selected"));