From 3ab5b64e667ee1372f31807bec217a3003a7c972 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Thu, 16 Apr 2020 16:30:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DiOS=E5=B9=B3=E5=8F=B0H?= =?UTF-8?q?5=E3=80=81App=E9=94=AE=E7=9B=98=E9=9A=90=E8=97=8F=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E5=AF=BC=E8=87=B4=E9=A1=B5=E9=9D=A2=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E9=94=99=E4=BD=8D=E7=9A=84Bug=20askId:=20938?= =?UTF-8?q?18?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/view/mixins/keyboard.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/view/mixins/keyboard.js b/src/core/view/mixins/keyboard.js index 7f9b42e7b..dc248592c 100644 --- a/src/core/view/mixins/keyboard.js +++ b/src/core/view/mixins/keyboard.js @@ -107,6 +107,10 @@ export default { UniViewJSBridge.unsubscribe('hideKeyboard', this.hideKeyboardTemp) document.removeEventListener('click', iosHideKeyboard, false) this.resetSoftinputNavBar() + // 修复ios端显示与点击位置错位的Bug by:wyq + if (document.body.scrollIntoView) { + document.body.scrollIntoView() + } } } } -- GitLab