I want to include three separate set of radio buttons in my code and for that I am using createRadio() three separate times, such as: radio1 = createRadio(), radio2 = createRadio(), radio3= createRadio().
But there seems to be a major bug: all of them reference the same object - they cannot be selected separately (e.g. if I chose one option from radio1 that will uncheck any selected option for the other two radios and vice versa) and whenever I call a method on any of them it returns the same value (e.g. after selecting option1 for radio1 calling .value() on radio2 will return the value for option1 of radio1).
What to do with this? Am I guessing right that this is a bug? Should I report it somewhere? How to get around it? I really need those sets of radio buttons.
Hey,
there is no bug here actually, you just miss something about the behavior of inputs radios. Radio buttons are grouped by the name attribute you give to them. It means that you can have a complete destructured HTML and still keep radios buttons linked :