From 7b3d634be7c945f8dae94b50fa2f914eb7b9a0cd Mon Sep 17 00:00:00 2001 From: qiang Date: Tue, 1 Sep 2020 18:20:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20App=20=E7=AB=AF=E4=BF=AE=E5=A4=8D=20iOS1?= =?UTF-8?q?2=20=E4=BB=A5=E4=B8=8B=20:adjust-position=3D"false"=20=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/view/mixins/keyboard.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/core/view/mixins/keyboard.js b/src/core/view/mixins/keyboard.js index a329d11ae..2129d1a28 100644 --- a/src/core/view/mixins/keyboard.js +++ b/src/core/view/mixins/keyboard.js @@ -138,10 +138,17 @@ export default { if (__PLATFORM__ === 'app-plus') { el.addEventListener('click', () => { - if (focus && keyboardHeight === 0) { + if (!this.disabled && focus && keyboardHeight === 0) { setSoftinputTemporary(this) } }) + if (!isAndroid && parseInt(osVersion) < 12) { + el.addEventListener('touchstart', () => { + if (!this.disabled && !focus) { + setSoftinputTemporary(this) + } + }) + } } const onKeyboardHide = () => { -- GitLab