From 5014c296ba5b625a5c7c0d444cc9461b930ad30a Mon Sep 17 00:00:00 2001 From: zsmj1994 Date: Tue, 8 Sep 2020 16:46:04 +0800 Subject: [PATCH] =?UTF-8?q?DEC-14919=20fix:=20=20IE11=E5=9C=A8=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E9=87=8D=E6=96=B0=E8=8E=B7=E5=BE=97=E7=84=A6?= =?UTF-8?q?=E7=82=B9=E4=B9=8B=E5=90=8E=E4=BC=9A=E5=85=88=E8=A7=A6=E5=8F=91?= =?UTF-8?q?focusout=E5=86=8D=E8=A7=A6=E5=8F=91focus,=E8=A6=81=E4=BF=9D?= =?UTF-8?q?=E6=8C=81=E5=85=88=E8=8E=B7=E5=BE=97=E7=84=A6=E7=82=B9=E5=86=8D?= =?UTF-8?q?=E5=A4=B1=E5=8E=BB=E7=84=A6=E7=82=B9=E7=9A=84=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=E4=B8=8D=E5=8F=98,=E5=9B=A0=E6=AD=A4=E9=87=87=E7=94=A8blur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/input/input.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/base/single/input/input.js b/src/base/single/input/input.js index 2b01982f46..c5f2843659 100644 --- a/src/base/single/input/input.js +++ b/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)) {