Because the onchange function is not state and should only be set on construction.