You should use the value={selectedColor} prop instead of defaultValue. That makes the Select “controlled” so it will keep focus on the selected option even after re-renders.
value={selectedColor}
defaultValue