Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Weekly downloads
2.4K
decreased by-37.52%
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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc