Package Exports
- react-field
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-field) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-field
<input />replacement
Input Field component with onChange(value) and stopPropagation
Motivation
- Very often you only need just the input
valueon theonChangehandler. - Just as often, you don't need
changeevent propagation. You've probably been bitten by this several times.
Props
onChange(value: String): Function- theonChangehandler will be called with the input value, not theeventobject.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 tofalseto allowchangeevent propagation.type: String- defaults to text