In my component I want to do some stuff after the select value has changed.
select:
<select value={current} onChange={this.onSelectChange.bind(this)}>
{options}
</select>
onchange event:
onSelectChange(event) {
const { cookies } = this.props;
// event.value is undefinded
}
I need the props in the event so I use bind(this). But why is event.value
undefined (event.target.value
also)