Browse Source

DEC-14919 fix: IE11在浏览器重新获得焦点之后会先触发focusout再触发focus,要保持先获得焦点再失去焦点的顺序不变,因此采用blur

es6
zsmj1994 4 years ago
parent
commit
5014c296ba
  1. 3
      src/base/single/input/input.js

3
src/base/single/input/input.js

@ -74,7 +74,8 @@ BI.Input = BI.inherit(BI.Single, {
.focus(function (e) { // 可以不用冒泡
self._focusDebounce();
})
.focusout(function (e) {
.blur(function (e) {
// DEC-14919 IE11在浏览器重新获得焦点之后会先触发focusout再触发focus,要保持先获得焦点再失去焦点的顺序不变,因此采用blur
self._blurDebounce();
});
if (BI.isKey(this.options.value) || BI.isEmptyString(this.options.value)) {

Loading…
Cancel
Save