[ADF-810] Radio button list is selecting the first value behind the scenes when nothing is selected - 1963 Github Created: 13-Jun-17  Updated: 19-Jun-17  Resolved: 19-Jun-17

Status: Done
Project: Apps Development Framework
Component/s: None
Affects Version/s: None
Fix Version/s: 1.6.1

Type: Bug
Reporter: Mario Romano Assignee: Jenny Dosti [X] (Inactive)
Resolution: Resolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Zip Archive Radiobutton.zip    
Sprint: Sprint 12, Sprint 13




*Type of issue:* (check with "[x]")

  • [ ] New feature request
  • [X ] Bug
  • [ ] Support request
  • [ ] Documentation
    *Current behaviour:*
    When a radio button list is on the form and the selection controls the visibility of other widgets on the form. If no item is selected the code is taking the value of the first item in the list as being selected (even tho it is not) and shows the widget.

When the form is completed it is also taking the value of the first option in the radio button list and populating the variable when not selected

*Expected behavior:*
Essentially behave like the AngularJS code. If the radio button list is not selected then don't populate the variable.

*Steps to reproduce the issue:*
place 3 radio buttons on a form and set the visibility condition of the three other widgets based on what is selected in the button list. The first one will always render visible even if not selected

*Component name and version:*
ng2-alfresco-form radiobutton. version 1.5.0

*Node version (for build issues):*

Comment by Eugenio Romano [ 15-Jun-17 ]

Is not really clear to me the scenario I asked for a clarification on github

Comment by Eugenio Romano [ 15-Jun-17 ]

I have attached the form provided on github

Generated at Tue Oct 20 15:52:09 BST 2020 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.