Socket
Socket
Sign inDemoInstall

focus-action

Package Overview
Dependencies
0
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    focus-action

unify the behavior of input box to get focus


Version published
Maintainers
1
Install size
8.21 kB
Created

Readme

Source

focus-action

统一移动端输入框获取焦点的行为,解决点击不灵敏、迟钝和键盘遮挡等问题。

unify the behavior of input box to get focus

install

npm install focus-action --save

 or

yarn add focus-action

Usage

Next, import the module in your application module:

import 'focus-action'

 or

<script src="focus-action.min.js"></script>

通过纯挂载事件实现,引入库即可。 OK !

TIP

安卓下如果输入框获取焦点时不发生窗口尺寸变化,则会在body的直接子元素上添加transform样式,建议webview弹出键盘时改变窗口高度。

Keywords

FAQs

Last updated on 27 Dec 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc