Seperated parsing from onChange in the array input