AngularJS required radio buttons needs two click events to be valid

前端 未结 8 2040
庸人自扰
庸人自扰 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:54

    Try adding the ng-click attribute to your radio button input.

    Credit to Manny D for noting this first. Yes, this is a little hackish, but it works. E.g.,

    
    

提交回复
热议问题