Allow an onChange prop to be passed in.