fix: setting name in the selected input

It used to set the name attr in options, fixing it and setting it in selected input tag