I would try tying it to onBlur which will trigger the input value to be saved to state when the input box loses focus.