Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
react-input-just-numbers
Advanced tools
Readme
React Input Just Numbers is a Hack to fix the issues with HTML Form Input type=number in Mobile and Desktops.
It eliminates the issue of accidentally changing numeric values when a user scroll's over the focused input as well as changing values with Up and Down Keys(In Desktop). It opens a Numeric Keypad in Both Android and IOS Devices. It Gives you an option of choosing just numeric keypad (just the digits, no .(dot) character) for IOS using 'onlydigits' attribute. Android has a .(dot) in its default Numeric Keypad.
$ npm install react-input-just-numbers --save
Import it in your Component
import InputNumber from 'react-input-just-numbers';
Use it like a normal Form Component, add attributes and events as you would have added normally in an input[type="number"] field in React.
<form>
...
<InputNumber placeholder="Your Placeholder Text" value={someDefaultValue}
onChange={(e) => someFunctionName(e)}
/>
...
</form>
Add 'onlydigits' attribute to enable Numeric Keypad in Apple IOS Devices, Android opens it by default.
<InputNumber onlydigits placeholder="Your Placeholder Text" value={someDefaultValue}
onChange={(e) => someFunctionName()}
/>
MIT | © Ayushya Jaiswal
FAQs
React Form Input Number with Support for Mobile Devices.
We found that react-input-just-numbers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).