A simple controlled input is not updating value based on user input when "onInput" is used as the listening event (in IE9/10). "onChange" works properly, but "onInput" has been selected as our event in order to solve for pasting values in IE11.
class TestComp extends React.Component {
constructor(props){
super(props);
this.state = { value: "" };
this.updateValue = this.updateValue.bind(this);
}
render(){
return <input onInput={this.updateValue} value={this.state.value} />;
}
updateValue(evt){
this.setState({ value: evt.target.value });
}
};
https://codepen.io/anon/pen/KmJPGR
Is this an improper implementation of a controlled input? If yes, how can this be fixed? If no, what alternatives exist?