diff --git a/src/core/view/mixins/keyboard.js b/src/core/view/mixins/keyboard.js index dc248592c7149b6c4091d30045e245f7a6902d87..8aa7f6956af7cad659b53e60f4898acd9b486880 100644 --- a/src/core/view/mixins/keyboard.js +++ b/src/core/view/mixins/keyboard.js @@ -108,8 +108,8 @@ export default { document.removeEventListener('click', iosHideKeyboard, false) this.resetSoftinputNavBar() // 修复ios端显示与点击位置错位的Bug by:wyq - if (document.body.scrollIntoView) { - document.body.scrollIntoView() + if (String(navigator.vendor).indexOf('Apple') === 0) { + document.documentElement.scrollTo(document.documentElement.scrollLeft, document.documentElement.scrollTop) } } }