🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-field

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-field

Input Field component with onChange(value) and stopPropagation

2.0.2
latest
Source
npm
Version published
Weekly downloads
4.4K
-17.98%
Maintainers
2
Weekly downloads
 
Created
Source

react-field

<input /> replacement

Input Field component with onChange(value) and stopPropagation

Motivation

  • Very often you only need just the input value on the onChange handler.
  • Just as often, you don't need change event propagation. You've probably been bitten by this several times.

Props

  • onChange(value: String): Function - the onChange handler will be called with the input value, not the event object.
  • stopChangePropagation: Boolean - defaults to true. By default, the propagation of the change event will be stopped. All other evens will work as usual. Set this prop to false to allow change event propagation.
  • type: String - defaults to text

License

MIT

Keywords

react

FAQs

Package last updated on 06 Jul 2016

Did you know?

Socket

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