AngularJS required radio buttons needs two click events to be valid

前端 未结 8 2033
庸人自扰
庸人自扰 2020-12-15 19:43

I have a very simple form where a radio button is required to be selected in order for a form to be valid. The radio buttons are generated by ngRepeat.

8条回答
  •  佛祖请我去吃肉
    2020-12-15 19:57

    I had this problem because a colleague had copied the radio buttons in the same page and hidden them for temporary reference, so duplicate radio inputs with the same name

提交回复
热议问题