Skip to content

Instantly share code, notes, and snippets.

@weikx
Created April 28, 2020 01:45
Show Gist options
  • Save weikx/d8123d2324dcc8e0d8270d084775e050 to your computer and use it in GitHub Desktop.
Save weikx/d8123d2324dcc8e0d8270d084775e050 to your computer and use it in GitHub Desktop.
解决Ios input输入后页面错乱无法点击
// 加入到App.vue
document.body.addEventListener('focusout', () => {
window.scrollTo({ top: 0, left: 0, behavior: 'smooth' })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment