Added a propType for the onChange property