2.0.2 • Published 9 years ago
react-field v2.0.2
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