react select onChange returning previous value instead of current
问题 I'm attempting to update the state of a parent component after a user changes the value of a child components select element. While I've got it somewhat working, I've noticed that when I fire the onChange event on my select element it'll return the previous value instead of the one that has just been selected. My React Code class Parent extends React.Component{ constructor(props){ super(props); this.state = { data: { condition: "any" } }; } update = data => { this.setState({ data: { ...this