input-number
input-number copied to clipboard
Pass onChange Native Event Back
Instead of passing back just the number with the onChange event it would be a more consistent experience to get back the actual event from the input back to the consumer of this component.
Doing so will make it easier and more consistent to process events that come back from other input type elements.
I requested that earlier too, declined. You will just have to create a custom component over rc-input-number and have your own onchange handler.
onChange(val) {
const evt = {
target: {
name: this.props.name,
value: val
}
};
this.props.onChange(evt); // any way you want to raise the standard event
}
me need this too