Browse Source

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

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '884f0fd34fa12c21766d7e1639bff3015edfa8d8':
  KERNEL-11911 fix: "bi.textarea_editor"提供了setWatermark方法,但是却没动态更新title
es6
Dailer 2 years ago
parent
commit
563d59a0a8
  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