Uploaded image for project: 'Apps Development Framework'
  1. Apps Development Framework
  2. ADF-810

Radio button list is selecting the first value behind the scenes when nothing is selected - 1963 Github

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Unprioritized
    • Resolution: Resolved
    • Affects Version/s: None
    • Fix Version/s: 1.6.1
    • Component/s: None
    • Labels:
      None

      Description

      https://api.github.com/repos/Alfresco/alfresco-ng2-components/issues/1963

      -----------------

      *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):*
      6.9.5

        TestRail: Results

          Attachments

            Structure

              Activity

                People

                • Assignee:
                  jdosti Jenny Dosti
                  Reporter:
                  mromano Mario Romano
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    TestRail: Cases

                      Structure Helper Panel