Browse Source

Pull request #2266: 无JIRA任务 统一逻辑

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

* commit '20fb288b2a0f5a980bba14939cea921ce8c98c52':
  fix: 统一逻辑
es6
Teller 3 years ago
parent
commit
17c5a72ce8
  1. 8
      src/base/single/input/input.js

8
src/base/single/input/input.js

@ -24,7 +24,7 @@ BI.Input = BI.inherit(BI.Single, {
var _keydown = BI.debounce(function (keyCode) {
self.onKeyDown(keyCode, ctrlKey);
self._keydown_ = false;
}, 300);
}, BI.EVENT_RESPONSE_TIME);
var _clk = BI.debounce(BI.bind(this._click, this), BI.EVENT_RESPONSE_TIME, {
"leading": true,
"trailing": false
@ -95,11 +95,7 @@ BI.Input = BI.inherit(BI.Single, {
_blur: function () {
var self = this;
if (self._keydown_ === true) {
BI.delay(blur, 300);
} else {
blur();
}
blur();
function blur () {
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {

Loading…
Cancel
Save