AngularJS required radio buttons needs two click events to be valid

前端 未结 8 2017
庸人自扰
庸人自扰 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 20:18

    For IONIC v1, add name="" to prevent ionic auto-generate attribute name. Then, I can change the selected item with only one click.

    
        {{ topic.title }}
    
    

提交回复
热议问题