Browse Source

KERNEL-11911 fix: "bi.textarea_editor"提供了setWatermark方法,但是却没动态更新title

es6
zsmj 2 years ago
parent
commit
811c4b8352
  1. 3
      src/base/single/editor/editor.textarea.js

3
src/base/single/editor/editor.textarea.js

@ -79,7 +79,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
BI.Widget._renderEngine.createElement(document).unbind("mousedown." + self.getName()); BI.Widget._renderEngine.createElement(document).unbind("mousedown." + self.getName());
}); });
this.content.element.keydown(function () { this.content.element.keydown(function () {
// 水印快速消失 // 水印快速消失
self._checkWaterMark(); self._checkWaterMark();
}); });
this.content.element.keyup(function (e) { this.content.element.keyup(function (e) {
@ -111,7 +111,6 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
cls: "bi-water-mark textarea-watermark", cls: "bi-water-mark textarea-watermark",
textAlign: "left", textAlign: "left",
whiteSpace: o.scrolly ? "normal" : "nowrap", whiteSpace: o.scrolly ? "normal" : "nowrap",
title: o.watermark,
text: o.watermark, text: o.watermark,
invalid: o.invalid, invalid: o.invalid,
disabled: o.disabled, disabled: o.disabled,

Loading…
Cancel
Save