I have created a dropdown select where you can set the amount of input fields available to you.

But once i try to fill in the first input field, the value jumps over to the second field (same happens on second and third field where it shifts one place).I have fidled around with the input field and the change handler, but i have not figured out the cause nor the solution. It would be much appreciated if someone could help out.