From 51908154586d7ddec9aba22a11e7865a2d48aba1 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Fri, 17 Sep 2021 14:11:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=A6=81=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=EF=BC=8C=E6=8C=89=E7=A9=BA=E6=A0=BC=E5=8F=AF?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E4=B8=8B=E6=8B=89=E6=A1=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/resources/static/select2/4.0/select2.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/src/main/resources/static/select2/4.0/select2.js b/common/src/main/resources/static/select2/4.0/select2.js index 346a6fe3..a515ea96 100644 --- a/common/src/main/resources/static/select2/4.0/select2.js +++ b/common/src/main/resources/static/select2/4.0/select2.js @@ -5377,7 +5377,10 @@ S2.define('select2/core',[ } else { if (/*key === KEYS.ENTER || */key === KEYS.SPACE || // ThinkGem 去掉回车后打开下拉框,解决jqgrid回车获取下一个输入框按键冲突 (key === KEYS.DOWN && evt.altKey)) { - self.open(); + + if (!this.options.get('disabled')){ // 修正禁用的时候,按空格可弹窗下拉框问题 + self.open(); + } evt.preventDefault(); }